Python / rq - How to pass information from the caller to the worker? Python / rq - How to pass information from the caller to the worker? flask flask

Python / rq - How to pass information from the caller to the worker?


Because you didn't fetch the updated meta. But, don't do this!!Invoking save_meta and refresh in caller and worker will lose data.

Instead, Use job.connection.set(job + ':should_stop', 1, ex=300) to set flag, and use job.connection.get(job + ':should_stop') to check if flag is set.