Skip to content

Commit

Permalink
Change NOTIFY channel name to task_created
Browse files Browse the repository at this point in the history
  • Loading branch information
Mozzo1000 committed Jul 23, 2024
1 parent 9c537b5 commit 38de327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
tasks_endpoint = Blueprint('tasks', __name__)

def _notify_workers(id):
db.session.execute(text(f"NOTIFY workers_channel, '{id}';"))
db.session.execute(text(f"NOTIFY task_created, '{id}';"))
db.session.commit()

@tasks_endpoint.route("/v1/tasks/<id>", methods=["GET"])
Expand Down

0 comments on commit 38de327

Please sign in to comment.