Separate timer function execution into dedicated worker process

- Move timer function scheduling and execution logic from `app.py` to new `worker.py`
- Update `Procfile` to launch worker process alongside web application
- Simplify main application startup by removing scheduler configuration
- Maintain existing timer function execution and logging behavior
This commit is contained in:
Peter Stockings
2025-02-23 17:57:16 +11:00
parent df9378ac23
commit 525471d8c0
3 changed files with 144 additions and 131 deletions

View File

@@ -1 +1,2 @@
web: gunicorn app:app --workers=4
web: gunicorn app:app --workers=4
worker: python worker.py