20 lines
477 B
Python
20 lines
477 B
Python
|
|
from procrastinate import App, PsycopgConnector
|
||
|
|
|
||
|
|
from ..config import settings
|
||
|
|
|
||
|
|
|
||
|
|
procrastinate_app = App(
|
||
|
|
connector=PsycopgConnector(conninfo=settings.procrastinate_database_url),
|
||
|
|
import_paths=[
|
||
|
|
"app.tasks.adventure",
|
||
|
|
"app.tasks.regenerate_audio",
|
||
|
|
"app.tasks.summarise",
|
||
|
|
],
|
||
|
|
)
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
procrastinate_app.run_worker(
|
||
|
|
queues=["adventure_pipeline", "default"]
|
||
|
|
)
|
||
|
|
|