mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 13:28:13 +08:00
Makes DB polling time configurable via poll setting
This commit is contained in:
@@ -61,7 +61,7 @@ class ORM(Broker):
|
||||
task_list.append((task.pk, task.payload))
|
||||
return task_list
|
||||
# empty queue, spare the cpu
|
||||
sleep(0.2)
|
||||
sleep(Conf.POLL)
|
||||
|
||||
def delete_queue(self):
|
||||
return self.purge_queue()
|
||||
|
||||
Reference in New Issue
Block a user