mirror of https://github.com/peter4431/rq.git
Add the workers connection to _connection_stack
This allows jobs to use get_current_connection() with a resolvable connection. And then these jobs can schedule new jobs for example (my use-case). Or attach information to their job-object. Also pop the pushed connection after running the jobs. This is needed for some tests that check the _connection_stack afterwards;-) And also for use-cases where the workers are used multiple times. fixes nvie/rq#479main
parent
bc4fc5595f
commit
acbcea0c66
Loading…
Reference in New Issue