Running background jobs with an elastic beanstalk

I am trying to run a background job in an elastic beanstalk, the background operation has an infinite loop, so it never returns a response, and therefore I get this error: "Some instances did not respond to commands. Responses were not received from [i-ba5fb2f7]."

I run the background job in the elastic beanstalk.config file as follows: 06_start_workers: command: "./workers.py &"

Is there any way to do this? I do not want the elastic beanstalk to wait for the return value of this process.

+5
source share
1 answer

fixed, just need to write this command:

: "nohup./workers.py > foo.out 2 > foo.err </dev/null &"

+4

All Articles