Skip to content

Commit

Permalink
putting tasks in the background
Browse files Browse the repository at this point in the history
  • Loading branch information
biagiodistefano committed Feb 6, 2024
1 parent e65d6be commit 4e2444a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ def create_template_message(sender, instance: models.MessageTemplate, **kwargs):
if instance.draft:
return
if instance._original_text != instance.text:
tasks.submit_new_template(instance)
tasks.submit_new_template.delay(instance)
except Exception as e:
print(f"Error submitting template: {e}")

0 comments on commit 4e2444a

Please sign in to comment.