Can`t run python procrastinate app
Anonymous
FREEOP

15 days ago

Can run python procractinate app localy in docker, but same config and code failing in railway

Deploy log:

procrastinate: error: argument -a/--app: invalid load_app value: 'app.tasks.procrastinate_app'

Solved$10 Bounty

2 Replies

Status changed to Open Railway 15 days ago


10 days ago

maybe missing dependencies in Railway Your requirements.txt or Pyproject.toml might not include all packages?


Anonymous
FREEOP

10 days ago

Here is what's helped:

Previously, the worker was started directly through the Procrastinate CLI command:

sh -c "sleep 5 && uv run procrastinate --app=app.tasks.app worker --queues=video_scraper --concurrency=2"

We changed the startup approach to run the worker through a dedicated Python file instead:

sh -c "sleep 5 && uv run python worker.py"

From a technical perspective, both approaches should start the same worker and perform the same job processing logic. However, the file-based startup resolves the Railway issue we were seeing with the direct CLI command.

We are still not fully sure why the direct command fails in Railway while the file-based approach works, but the important part is that the worker now starts correctly and the issue is resolved.


Status changed to Solved Railway 10 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...