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

desc overwrites task name in admin view #139

Open cuthulino opened 8 months ago

cuthulino commented 8 months ago

Hello, happy new year.

When setting a task description like in the minimal example:

@task(context=True)
def foobar_task(task, list_to_process):
    process_info = ProcessInfo(
        task,
        desc='A description of this Job',
        total=len(list_to_process)
    )

The taskname column in the admin panel no longer shows the task name. It displays the complete description. A long description results in a very ugly admin view. Here is an example of my functionclean_huey_db() with desc='Huey DB Cleanup',: grafik

Maybe it would be usefull to seperate this:

Or am I wrong about the desc parameter?