mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 18:18:12 +08:00
linting some blank lines
This commit is contained in:
+2
-3
@@ -35,8 +35,6 @@ from django_q.models import Task, Success, Schedule
|
||||
from django_q.monitor import Status, Stat
|
||||
|
||||
|
||||
|
||||
|
||||
class Cluster(object):
|
||||
def __init__(self, list_key=Conf.Q_LIST):
|
||||
try:
|
||||
@@ -450,7 +448,8 @@ def scheduler(list_key=Conf.Q_LIST):
|
||||
kwargs['list_key'] = list_key
|
||||
s.task = tasks.async(s.func, *args, **kwargs)
|
||||
if not s.task:
|
||||
logger.error(_('{} failed to create a task from schedule {} [{}]').format(current_process().name, s.id), s.func)
|
||||
logger.error(_('{} failed to create a task from schedule {} [{}]').format(current_process().name, s.id),
|
||||
s.func)
|
||||
else:
|
||||
logger.info(_('{} created a task from schedule {} [{}]').format(current_process().name, s.id, s.func))
|
||||
s.save()
|
||||
|
||||
Reference in New Issue
Block a user