THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class SchedulerBackend(AsyncIOScheduler): (source)
Constructor: SchedulerBackend(event_loop, timezone)
Bridge native loop callbacks to the framework's awaited shutdown.
| Method | __init__ |
Retain the native executor and its shutdown snapshot. |
| Method | __shutdown |
Run shutdown on the owning loop and always retire its timer. |
| Method | _create |
Create the executor through APScheduler's required extension hook. |
| Method | abort |
Release owned stores and executors after partial startup. |
| Method | shutdown |
Finish native shutdown before returning to a waiting worker thread. |
| Method | take |
Transfer pending job cleanup to the framework shutdown owner. |
| Instance Variable | __executor |
Native executor whose futures must outlive cancellation requests. |
| Instance Variable | __pending |
Job futures awaiting transfer to the framework's shutdown owner. |
| Instance Variable | _eventloop |
Retired owner loop after native shutdown, including failures. |
Retain the native executor and its shutdown snapshot.
| Parameters | |
eventasyncio.AbstractEventLoop | Loop owning scheduled jobs and native shutdown. |
timezone:datetime.tzinfo | Timezone used by the scheduler. |
| Returns | |
None | No return value. |
Create the executor through APScheduler's required extension hook.
| Returns | |
_Executor | Executor retaining the native future registry. |
Release owned stores and executors after partial startup.
| Parameters | |
primary:BaseException | Startup failure retained while cleanup failures are observed. |
| Returns | |
None | No return value. |
Finish native shutdown before returning to a waiting worker thread.
| Parameters | |
wait:bool, default True | Native executor shutdown option. |
| Returns | |
None | No return value. |
| Raises | |
SchedulerNotRunningError | If no owning loop remains. |
BaseException | If native shutdown fails, preserving the original exception. |
Transfer pending job cleanup to the framework shutdown owner.
| Returns | |
tuple of asyncio.Future | Previously captured futures, released from this backend's snapshot. |