19 lines
490 B
Python
19 lines
490 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.create_summary_article",
|
|
],
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
procrastinate_app.run_worker(
|
|
queues=["adventure_pipeline", "default"]
|
|
)
|
|
|