Allow task handler to work even if no timer is set.
This commit is contained in:
parent
0345da6468
commit
888ab30bfc
1 changed files with 4 additions and 1 deletions
|
|
@ -354,7 +354,10 @@ class HandleTask:
|
|||
|
||||
def _dispatcher(self):
|
||||
for task in self._tasks.get_all():
|
||||
if not task.timer or "[no_handler]" in task.name:
|
||||
if "[no_handler]" in task.name:
|
||||
continue
|
||||
|
||||
if not task.timer and "[only_handler]" not in task.name:
|
||||
continue
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue