Allow task handler to work even if no timer is set.

This commit is contained in:
arabcoders 2025-06-18 17:03:30 +03:00
parent 0345da6468
commit 888ab30bfc

View file

@ -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: