Skip to content

Commit c8bca29

Browse files
author
Ask Solem
committed
pyflakes
1 parent 1aeb981 commit c8bca29

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

celery/worker/control/builtins.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,9 @@ def diagnose(panel, timeout=None, **kwargs):
2525

2626

2727
@Panel.register
28-
def revoke(panel, task_id, task_name=None, **kwargs):
28+
def revoke(panel, task_id, **kwargs):
2929
"""Revoke task by task id."""
3030
revoked.add(task_id)
31-
backend = default_backend
32-
if task_name: # use custom task backend (if any)
33-
try:
34-
backend = tasks[task_name].backend
35-
except KeyError:
36-
pass
3731
panel.logger.warn("Task %s revoked" % (task_id, ))
3832
return {"ok": "task %s revoked" % (task_id, )}
3933

0 commit comments

Comments
 (0)