apscheduler の API リファレンス
apscheduler (agronholm/apscheduler) の公開 API 74 件 —— クラス 39、関数 4、メソッド 31。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: agronholm/apscheduler
| 種別 | 件数 |
|---|---|
| クラス | 39 |
| 関数 | 4 |
| メソッド | 31 |
API 一覧
class
src.apscheduler._enums.JobOutcomeUsed to indicate how the execution of a job ended.
class
src.apscheduler._enums.RunStateUsed to track the running state of schedulers.
class
src.apscheduler._events.DataStoreEventBase class for events originating from a data store.
class
src.apscheduler._events.EventBase class for all events.
class
src.apscheduler._events.JobAddedSignals that a new job was added to the store.
class
src.apscheduler._events.JobDeserializationFailedSignals that the deserialization of a job has failed.
class
src.apscheduler._events.JobReleasedSignals that a scheduler has finished processing of a job.
class
src.apscheduler._events.JobRemovedSignals that a job was removed from the store.
class
src.apscheduler._events.ScheduleAddedSignals that a new schedule was added to the store.
class
src.apscheduler._events.ScheduleRemovedSignals that a schedule was removed from the store.
class
src.apscheduler._events.ScheduleUpdatedSignals that a schedule has been updated in the store.
class
src.apscheduler._events.SchedulerEventBase class for events originating from a scheduler.
class
src.apscheduler._events.SchedulerStoppedSignals that a scheduler has stopped.
class
src.apscheduler._events.TaskAddedSignals that a new task was added to the store.
class
src.apscheduler._events.TaskRemovedSignals that a task was removed from the store.
class
src.apscheduler._events.TaskUpdatedSignals that a task was updated in a data store.
func
src.apscheduler._marshalling.callable_from_ref(ref:str) -> CallableReturn the callable pointed to by ``ref``.
func
src.apscheduler._marshalling.callable_to_ref(func:Callable) -> strReturn a reference to the given callable.
class
src.apscheduler._retry.RetryMixinMixin that provides support for retrying operations.
class
src.apscheduler._retry.RetrySettingsSettings for retrying an operation with Tenacity.
class
src.apscheduler._schedulers.async_.AsyncSchedulerAn asynchronous (AnyIO based) scheduler implementation.
method
src.apscheduler._schedulers.async_.AsyncScheduler.get_job_result(job_id:UUID, *wait:bool=True) -> JobResult | NoneRetrieve the result of a job.
method
src.apscheduler._schedulers.async_.AsyncScheduler.get_jobs() -> Sequence[Job]Retrieve all jobs from the data store.
method
src.apscheduler._schedulers.async_.AsyncScheduler.get_schedule(id:str) -> ScheduleRetrieve a schedule from the data store.
method
src.apscheduler._schedulers.async_.AsyncScheduler.get_schedules() -> list[Schedule]Retrieve all schedules from the data store.
method
src.apscheduler._schedulers.async_.AsyncScheduler.get_tasks() -> Sequence[Task]Retrieve all currently defined tasks.
method
src.apscheduler._schedulers.async_.AsyncScheduler.pause_schedule(id:str) -> NonePause the specified schedule.
method
src.apscheduler._schedulers.async_.AsyncScheduler.remove_schedule(id:str) -> NoneRemove the given schedule from the data store.
method
src.apscheduler._schedulers.async_.AsyncScheduler.run_until_stopped(*task_status:TaskStatus[None]=TASK_STATUS_IGNORED) -> NoneRun the scheduler until explicitly stopped.
method
src.apscheduler._schedulers.async_.AsyncScheduler.state() -> RunStateThe current running state of the scheduler.
method
src.apscheduler._schedulers.async_.AsyncScheduler.unpause_schedule(id:str, *resume_from:datetime | Literal['now'] | None=None) -> NoneUnpause the specified schedule.
class
src.apscheduler._schedulers.sync.SchedulerA synchronous wrapper for :class:`AsyncScheduler`.
method
src.apscheduler._schedulers.sync.Scheduler.start_in_background() -> NoneLaunch the scheduler in a new thread.
method
src.apscheduler._schedulers.sync.Scheduler.state() -> RunStateThe current running state of the scheduler.
class
src.apscheduler._structures.JobRepresents a queued request to run a task.
method
src.apscheduler._structures.Job.original_scheduled_time() -> datetime | NoneThe scheduled time without any jitter included.
class
src.apscheduler._structures.JobResultRepresents the result of running a job.
class
src.apscheduler._structures.ScheduleRepresents a schedule on which a task will be run.
class
src.apscheduler._structures.ScheduleResultRepresents a result of a schedule processing operation.
class
src.apscheduler._utils.UnsetValueThe type of :data:`unset`.
func
src.apscheduler._utils.current_async_library() -> strReturn the name of the currently used async library.
func
src.apscheduler._utils.time_exists(dt:datetime) -> boolDetermine whether a datetime exists in its time zone.
class
src.apscheduler.abc.DataStoreInterface for data stores.
method
src.apscheduler.abc.DataStore.acquire_jobs(scheduler_id:str, lease_duration:timedelta, limit:int | None=None) -> list[Job]Acquire unclaimed jobs for execution.
method
src.apscheduler.abc.DataStore.acquire_schedules(scheduler_id:str, lease_duration:timedelta, limit:int) -> list[Schedule]Acquire unclaimed due schedules for processing.
method
src.apscheduler.abc.DataStore.add_job(job:Job) -> NoneAdd a job to be executed by an eligible scheduler.
method
src.apscheduler.abc.DataStore.add_schedule(schedule:Schedule, conflict_policy:ConflictPolicy) -> NoneAdd or update the given schedule in the data store.
method
src.apscheduler.abc.DataStore.add_task(task:Task) -> NoneAdd the given task to the store.
method
src.apscheduler.abc.DataStore.cleanup() -> NonePerform clean-up operations on the data store.
method
src.apscheduler.abc.DataStore.get_job_result(job_id:UUID) -> JobResult | NoneRetrieve the result of a job.
method
src.apscheduler.abc.DataStore.get_jobs(ids:Iterable[UUID] | None=None) -> list[Job]Get the list of pending jobs.
method
src.apscheduler.abc.DataStore.get_schedules(ids:set[str] | None=None) -> list[Schedule]Get schedules from the data store.
method
src.apscheduler.abc.DataStore.get_task(task_id:str) -> TaskGet an existing task definition.
method
src.apscheduler.abc.DataStore.get_tasks() -> list[Task]Get all the tasks in this store.
method
src.apscheduler.abc.DataStore.release_job(scheduler_id:str, job:Job, result:JobResult) -> NoneRelease the claim on the given job and record the result.
method
src.apscheduler.abc.DataStore.remove_schedules(ids:Iterable[str]) -> NoneRemove schedules from the data store.
method
src.apscheduler.abc.DataStore.remove_task(task_id:str) -> NoneRemove the task with the given ID.
method
src.apscheduler.abc.DataStore.start(exit_stack:AsyncExitStack, event_broker:EventBroker, logger:Logger) -> NoneStart the event broker.
class
src.apscheduler.abc.SerializerInterface for classes that implement (de)serialization.
method
src.apscheduler.abc.Serializer.serialize(obj:object) -> bytesTurn the given object into a bytestring.
class
src.apscheduler.abc.SubscriptionRepresents a subscription with an event source.
method
src.apscheduler.abc.Subscription.unsubscribe() -> NoneCancel this subscription.
method
src.apscheduler.abc.Trigger.next() -> datetime | NoneReturn the next datetime to fire on.
class
src.apscheduler.datastores.base.BaseDataStoreBase class for data stores.
class
src.apscheduler.datastores.mongodb.MongoDBDataStoreUses a MongoDB server to store data.
class
src.apscheduler.datastores.sqlalchemy.SQLAlchemyDataStoreUses a relational database to store data.
class
src.apscheduler.eventbrokers.local.LocalEventBrokerAsynchronous, local event broker.
class
src.apscheduler.executors.async_.AsyncJobExecutorExecutes functions directly on the event loop thread.
class
src.apscheduler.executors.subprocess.ProcessPoolJobExecutorExecutes functions in a process pool.
class
src.apscheduler.executors.thread.ThreadPoolJobExecutorExecutes functions in a thread pool.
class
src.apscheduler.serializers.cbor.CBORSerializerSerializes objects using CBOR (:rfc:`8949`).
class
src.apscheduler.serializers.json.JSONSerializerSerializes objects using JSON.
class
src.apscheduler.triggers.date.DateTriggerTriggers once on the given date/time.
class
src.apscheduler.triggers.interval.IntervalTriggerTriggers on specified intervals.
この情報について
掲載しているシグネチャは agronholm/apscheduler の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。