Commit bf1ba35
committed
[fix:connection/tasks] Ignore current task instance when checking active tasks - #1204
The _is_update_in_progress function was incorrectly detecting the current
Celery task as another running task, causing update_config to exit early.
This fix excludes the current task by comparing task IDs, ensuring only
other instances for the same device are considered. Added tests to cover
same worker (should not skip) and different worker (should skip) scenarios.
Additionally, added INFO-level logging to convey when a task is skipped
because another task is in progress.1 parent 7394bd8 commit bf1ba35
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments