Hello, We’re trying to auto-start a machine. Since its a celery worker instance. We couldn’t do auto start/stop through fly.toml file. So I was doing this via Fly API. When it automatically starts the machine. it logs
Preparing to run: `celery -A folder_name.celery_app_config worker -l info --concurrency=2 --prefetch-multiplier=1’
and then it takes a lot of time (5-10) minutes. What can I do.
i tried suspending rather than stopping the machine, but it didn’t help either.
This doesn’t make a lot of sense. Yes, when you create a machine, it auto-starts. It will use the CMD specification in the Dockerfile to run a binary, such as the Celery worker start script. Machines will start in a few seconds, so you’ll have to do some digging as to what is taking 5-10 minutes. Please provide more details.