mirror of https://github.com/peter4431/rq.git
rq.worker: remove useless set_state call in horse (#1618)
* rq.worker: remove useless set_state call in horse The state should already have been set properly by the worker in `execute_job` `prepare_job_execution` is only called by `perform_job` which should only be called by `main_work_horse`/`fork_work_horse` (themselves only called by `execute_job`). Let `execute_job` do the bookkeeping. * worker: update SimpleWorker's state in execute_jobmain
parent
947f8eed33
commit
cd17d17d71
Loading…
Reference in New Issue