mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 18:26:30 +00:00
15 lines
406 B
Python
15 lines
406 B
Python
# projects/tasks_app.py
|
|
from procrastinate import App
|
|
from procrastinate.contrib.django import django_connector
|
|
|
|
app = App(
|
|
connector=django_connector.DjangoConnector(),
|
|
periodic_defaults={"max_delay": 86400}, # accept up to 24h delay
|
|
)
|
|
|
|
|
|
def on_app_ready(app):
|
|
app.periodic_defaults = {"max_delay": 86400}
|
|
app.import_paths.append("api.tasks")
|
|
app.import_paths.append("billing.tasks")
|