summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES-DEV.md1
-rw-r--r--ishtar_common/utils.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES-DEV.md b/CHANGES-DEV.md
index 5d983f6c6..ae493c8fb 100644
--- a/CHANGES-DEV.md
+++ b/CHANGES-DEV.md
@@ -2,6 +2,7 @@ Ishtar changelog
================
### Features ###
+- Performance: revoke cascade task
- JSON types: multi valued choices
- Forms:
- context record: change field order
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index a82a56f79..47fd3bad6 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -483,7 +483,9 @@ def cached_label_and_geo_changed(sender, **kwargs):
def revoke_old_task(kwargs, action_name, task_id, instance_cls):
kwargs["action"] = action_name
- key, old_task_id = get_cache(instance_cls, kwargs)
+ key, old_task_id = get_cache(
+ instance_cls, tuple(f"{k}:{v}" for k, v in kwargs.items())
+ )
if old_task_id:
try:
celery_app.control.revoke(old_task_id)