We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7627fad commit fdc2628Copy full SHA for fdc2628
function_app.py
@@ -18,4 +18,10 @@ def spotbot(req: func.HttpRequest) -> func.HttpResponse:
18
@app.route(route="manual_cleanup", methods=[func.HttpMethod.POST])
19
def manual_cleanup(req: func.HttpRequest) -> func.HttpResponse:
20
cleanup.cleanup()
21
- return func.HttpResponse(status_code=202)
+ return func.HttpResponse(status_code=202)
22
+
23
+@app.schedule(schedule="0 0 * * *",
24
+ arg_name="timer_cleanup",
25
+ run_on_startup=False)
26
+def timer_cleanup(timer: func.TimerRequest) -> None:
27
+ cleanup.cleanup()
0 commit comments