Commit d19c324f9306422b90d6082633f29f06558a5fcc
1 parent
31e49bf3
Exists in
master
and in
29 other branches
Set task name manually
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
colab/plugins/utils/data.py
| ... | ... | @@ -29,7 +29,8 @@ def register_tasks(): |
| 29 | 29 | |
| 30 | 30 | if callable(getattr(item, 'fetch_data', None)): |
| 31 | 31 | instance = item() |
| 32 | - task = app.task(bind=True)(instance.fetch_data) | |
| 32 | + task_name = '{}.{}'.format(module.__name__, item_name) | |
| 33 | + task = app.task(name=task_name, bind=True)(instance.fetch_data) | |
| 33 | 34 | TASKS.add(task) |
| 34 | 35 | |
| 35 | 36 | return TASKS | ... | ... |