Koed00 / django-q

A multiprocessing distributed task queue for Django
https://django-q.readthedocs.org
MIT License
1.83k stars 285 forks source link

[Q] ERROR Python 'pickledobject' cannot be converted to a MySQL type #697

Open PsychicSmurf opened 2 years ago

PsychicSmurf commented 2 years ago

django-picklefield 3.1 blessed 1.19.1 arrow 1.2.3 Django 4.0.4 django-q 1.3.9 python 3.10.7

Fresh installation. Scheduler appears to work correctly, however it seems to fail trying to log a successful task as none show up in the admin after completion.

Q_CLUSTER = { 'name': 'DjangORM', 'workers': 4, 'timeout': 90, 'retry': 120, 'queue_limit': 50, 'bulk': 10, 'orm': 'default' }

For each scheduled task I see 5 similar log entries:

10:25:18 [Q] INFO Enqueued 4 10:25:18 [Q] INFO Process-1 created a task from schedule [2] 10:25:19 [Q] INFO Process-1:2 processing [friend-wyoming-kilo-king] 10:25:20 [Q] ERROR Python 'pickledobject' cannot be converted to a MySQL type 10:25:20 [Q] INFO Processed [friend-wyoming-kilo-king]

django_q_schedule table gets an entry when I schedule a task. And all three django-q DB tables are empty once the task completes.