caiosampaio
Docker sandbox
Hello, I have a Python/Django application that runs third-party Python code. For security reasons I run them in a sandbox environment
But when running the
command
I get the message docker: command not found, I've tried with docker-compose and it gives the same error.
The above code is running inside the web container.
my Railway.yml:
Any suggestions please?8 replies
Execute services in Procfile
I have the following Procfile:
web: python manage.py migrate && python manage.py collectstatic --noinput && gunicorn core.wsgi
worker: celery -A core worker --loglevel=INFO
beat: celery -A core beat -l INFO
But when I push to GitHub, only web is launched. How do I get the woker and beat to run as well.
Preferably automatically as well as the web, I have already tried using the command: railway run worker
, but I got the following error:
exec: "worker": executable file not found in $PATH
I've also tried starting all tasks in a single service:
web: python manage.py migrate && python manage.py collectstatic --noinput && celery -A core worker --loglevel=INFO && celery -A core beat -l INFO && gunicorn core.wsgi
But in this case, only the worker started the beat and not the web.7 replies
Celery django
I'm trying to deploy a celery worker but I'm getting the following error:
[2023-01-26 02:02:34,683: CRITICAL/MainProcess] Unrecoverable error: WorkerLostError('Could not start worker processes')
Traceback (most recent call last):
My Procfile:
web: python manage.py migrate && python manage.py collectstatic --noinput && celery -A core worker --loglevel=INFO && gunicorn core.wsgi
6 replies