You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for putting rq out there. It's saved me a bunch of time so far. Question:
I'm using my own worker script with preloaded libs and then entering the work() loop. Is it possible/what's the best way to access the worker's redis connection from inside of my enqueued function? Can I pass it in through work() somehow? Is this even a good idea? I want to access some cached data in redis. Or would it be better to just open a connection per func call?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
Thanks for putting rq out there. It's saved me a bunch of time so far. Question:
I'm using my own worker script with preloaded libs and then entering the work() loop. Is it possible/what's the best way to access the worker's redis connection from inside of my enqueued function? Can I pass it in through work() somehow? Is this even a good idea? I want to access some cached data in redis. Or would it be better to just open a connection per func call?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions