Replies: 5 comments 1 reply
-
Structure above? What structure? I don't see anything. |
Beta Was this translation helpful? Give feedback.
-
Also, why are you reporting a pickling failure if the pickling of a bound method (ie. the |
Beta Was this translation helpful? Give feedback.
-
Yes. It fails due to the self argument. How is that fixed |
Beta Was this translation helpful? Give feedback.
-
I have updated it |
Beta Was this translation helpful? Give feedback.
-
The easiest way to fix this would be to obtain the worker dynamically in the target function code, instead of being passed to it implicitly via the |
Beta Was this translation helpful? Give feedback.
-
Things to check first
I have checked that my issue does not already have a solution in the FAQ
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
Version
3.10.4
What happened?
I was adding a job to my schedule.
Jobstore is PostgresQL
The function added is an instance method. The error comes when the function is being pickled.
It fails to store the self argument
'args': (<package.sub_package.file_name.ClassName object at 0x1062f1f40>,),
Note that ClassName also inherits some other ClassX
How can we reproduce the bug?
scheduling.py
worker.py
Creating a project with structure above can re-produce the error.
Beta Was this translation helpful? Give feedback.
All reactions