Commit 70d04270 authored by Robert's avatar Robert

Use db_task to ensure proper connection handling

parent 5a1f6189
Pipeline #1479 failed with stage
in 1 minute and 30 seconds
from huey.contrib.djhuey import task
from huey.contrib.djhuey import db_task
from features.content.notifications import ContentCreated
@task()
@db_task()
def send_content_notifications(instance):
ContentCreated.send_all(instance)
from huey.contrib.djhuey import task
from huey.contrib.djhuey import db_task
from features.contributions.notifications import ContributionCreated
@task()
@db_task()
def send_contribution_notifications(instance):
ContributionCreated.send_all(instance)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment