mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 02:05:22 -04:00
Fix logical bugs in event bus and bulk session deletion (#3139)
This commit is contained in:
committed by
GitHub
parent
b8463e3ac2
commit
2a6921a455
@@ -105,12 +105,6 @@ async def _handle_event(event_name: str, owner: Optional[str] = None):
|
||||
db.commit()
|
||||
# Fire the task
|
||||
if _task_scheduler:
|
||||
if task.next_run and task.next_run > datetime.utcnow():
|
||||
logger.info(
|
||||
f"Event '{event_name}' reached task '{task.name}', "
|
||||
f"but it is already deferred until {task.next_run}"
|
||||
)
|
||||
continue
|
||||
logger.info(f"Event '{event_name}' triggered task '{task.name}' (every {threshold})")
|
||||
await _task_scheduler.run_task_now(task.id)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user