Skip to content

Commit

Permalink
Merge pull request #7951 from vkWeb/fix/persistent-task-list
Browse files Browse the repository at this point in the history
fix(tasks): tasks queue is cleared on server start
  • Loading branch information
rtibbles committed Apr 5, 2021
2 parents 7fb314b + 73071e1 commit 44bf1ed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions kolibri/utils/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from kolibri.core.content.zip_wsgi import get_application
from kolibri.core.deviceadmin.utils import schedule_vacuum
from kolibri.core.tasks.main import initialize_workers
from kolibri.core.tasks.main import queue
from kolibri.core.tasks.main import scheduler
from kolibri.utils import conf
from kolibri.utils.android import on_android
Expand Down Expand Up @@ -100,10 +99,6 @@ def start(self):
# schedule the vacuum job
schedule_vacuum()

# This is run every time the server is started to clear all the tasks
# in the queue
queue.empty()

# Initialize the iceqube engine to handle queued tasks
self.workers = initialize_workers()

Expand Down

0 comments on commit 44bf1ed

Please sign in to comment.