boxine / django-huey-monitor

Django based tool for monitoring huey task queue: https://github.com/coleifer/huey
GNU General Public License v3.0
86 stars 20 forks source link

badly formed hexadecimal UUID string #112

Open anguelov opened 1 year ago

anguelov commented 1 year ago

Huey has the api to define your own task_id when scheduling a task. If we set a task_id=123 the code in huey_monitor/tasks.py: 53 it is forced the task_id to be a uuid.
If we pass the task_id = 123 in the schedule task function, Huey_monitor signal will fail with error

 ValueError
badly formed hexadecimal UUID string
biaps99 commented 1 year ago

If task.id is an integer, I think it should be task_id = uuid.UUID(int=task.id), no?

anguelov commented 1 year ago

If task.id is an integer, I think it should be task_id = uuid.UUID(int=task.id), no?

In my case the id is a string

jedie commented 1 year ago

Hm. Good point. I never have the need to use something different than a UUID...

dwjorgeb commented 1 year ago

Having the same issue. We set custom IDs for the tasks in order to be able to track them more easily.

Makes no sense for this lib to check if the task IDs are actual UUIDs when Huey itself doesn't care, and allows to set custom IDs for the tasks