Hi, I'm trying to unit test a Celery task, but I need to get a real value of self.request.id in my task, any way to do this? (I'm calling directly the task function, without .delay/.apply_async, no always eager enabled).
siovene joined the channel
jbrhbr joined the channel
jbrhbr has quit
DLSteve joined the channel
tac-tics joined the channel
tac-tics
Hi all. I have a question.
I want to send tasks to a remote server running Tensorflow
The remote server needs to maintain a TF session
Is there a standard way to allow tasks to persist sessions? Or do I need to have celery hand the task off to another process or something like that?
I found a website with an example that suggests I set up the session as a global, checking to see if it has been initialized at the start of every task.
That looks like it should work. I wonder if there are any better practices, though.