From 1e2874dc5787e1063b0acd2c3268a06561b78e9d Mon Sep 17 00:00:00 2001
From: HassanAbouelela Generic python scheduler. Bases: Schedule the execution of coroutines and keep track of them. When instantiating a Any exception raised in a scheduled task is logged when the task is done.
objectScheduler, a name must be provided. This name is used to distinguish the
@@ -318,7 +319,7 @@ the same ID used to schedule it.
Initialize a new Scheduler instance.
Unschedule the task identified by task_id. Log a warning if the task doesn’t exist.
Unschedule all known tasks.
Schedule the execution of a coroutine.
If a task with task_id already exists, close coroutine instead of scheduling it. This
prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-used elsewhere.
Schedule coroutine to be executed at the given time.
If time is timezone aware, then use that timezone to calculate now() when subtracting.
If time is naĂŻve, then use UTC.
Schedule coroutine to be executed after delay seconds.
If a task with task_id already exists, close coroutine instead of scheduling it. This
prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-used elsewhere.
Wrapper for creating an asyncio.Task which logs exceptions raised in the task.
If the event_loop kwarg is provided, the task is created from that event loop,
otherwise the running loop is used.