Open yannbu opened 5 years ago
Do Schedules accept complex types as args?
I think the answer is no, right ? Because of this:
You can pass a datetime as a string, which can then be converted back into a native Python datetime within the task itself
I'm having a
01:04:50 [Q] ERROR malformed node or string: <_ast.Call object at 0x1075c50f0>
error in myqcluster
when passing adatetime
as task argument of aSchedule
.Do
Schedules
accept complex types as args? I have testedint
andstr
myself, it works OK, butdatetime
breaks everything. Also, I don't see examples with types other thanint
andstr
in the documentation.Here is my code and setup:
OS: Mac OS 10.14 Python: 3.6.0 Django==2.4.2 django-q==1.0.1
Thanks!