We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f9fe9e + fdeeffb commit 5aa7e55Copy full SHA for 5aa7e55
function_app.py
@@ -17,4 +17,11 @@ def spotbot(req: func.HttpRequest) -> func.HttpResponse:
17
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)
22
+
23
+@app.schedule(schedule="0 0 * * *",
24
+ arg_name="timer",
25
+ run_on_startup=False)
26
+def timer_cleanup(timer: func.TimerRequest) -> None:
27
cleanup.cleanup()
0 commit comments