Only create a TaskRunner object when task execution is triggered by the cli

This commit is contained in:
Patrick Jentsch
2021-02-09 11:10:30 +01:00
parent 49e4c837d6
commit 846ba31023
2 changed files with 2 additions and 4 deletions

View File

@ -52,6 +52,3 @@ class TaskRunner(CheckCorporaMixin, CheckJobsMixin):
for message in self._socketio_message_buffer[room][event]:
socketio.emit(event, self._socketio_message_buffer[room][event][message], room=room) # noqa
self.clear_socketio_message_buffer()
task_runner = TaskRunner()