标签:des http os io strong for ar art div
Abstract base class for all schedulers. Takes the following keyword arguments:
Parameters: |
|
---|
See also
Adds an executor to this scheduler. Any extra keyword arguments will be passed to the executor plugin’s constructor, assuming that the first argument is the name of an executor plugin.
Parameters: |
|
---|---|
Raises ValueError: | |
if there is already an executor by the given alias |
Adds the given job to the job list and wakes up the scheduler if it’s already running.
Any option that defaults to undefined will be replaced with the corresponding default value when the job is scheduled (which happens when the scheduler is started, or immediately if the scheduler is already running).
The func argument can be given either as a callable object or a textual reference in the package.module:some.object format, where the first half (separated by :) is an importable module and the second half is a reference to the callable object, relative to the module.
Parameters: |
|
---|---|
Return type: |
Job |
Adds a job store to this scheduler. Any extra keyword arguments will be passed to the job store plugin’s constructor, assuming that the first argument is the name of a job store plugin.
Parameters: |
|
---|---|
Raises ValueError: | |
if there is already a job store by the given alias |
Adds a listener for scheduler events. When a matching event occurs, callback is executed with the event object as its sole argument. If the mask parameter is not provided, the callback will receive events of all types.
Parameters: |
|
---|
See also
See also
Reconfigures the scheduler with the given options. Can only be done when the scheduler isn’t running.
Parameters: |
|
---|---|
Raises SchedulerAlreadyRunningError: | |
if the scheduler is already running |
Returns the Job that matches the given job_id.
Parameters: |
|
---|---|
Returns: |
the Job by the given ID, or None if it wasn’t found |
Return type: |
Job |
Returns a list of pending jobs (if the scheduler hasn’t been started yet) and scheduled jobs, either from a specific job store or from all of them.
Parameters: |
|
---|---|
Return type: |
list[Job] |
Modifies the properties of a single job. Modifications are passed to this method as extra keyword arguments.
Parameters: |
|
---|
Causes the given job not to be executed until it is explicitly resumed.
Parameters: |
|
---|
Prints out a textual listing of all jobs currently scheduled on either all job stores or just a specific one.
Parameters: |
|
---|
Removes all jobs from the specified job store, or all job stores if none is given.
Parameters: | jobstore (str|unicode) – alias of the job store |
---|
Removes the executor by the given alias from this scheduler.
Parameters: |
|
---|
Removes a job, preventing it from being run any more.
Parameters: |
|
---|---|
Raises JobLookupError: | |
if the job was not found |
Removes the job store by the given alias from this scheduler.
Parameters: |
|
---|
Removes a previously added event listener.
Constructs a new trigger for a job and updates its next run time. Extra keyword arguments are passed directly to the trigger’s constructor.
Parameters: |
|
---|
Resumes the schedule of the given job, or removes the job if its schedule is finished.
Parameters: |
|
---|
A decorator version of add_job(), except that replace_existing is always True.
Important
The id argument must be given if scheduling a job in a persistent job store. The scheduler cannot, however, enforce this requirement.
Shuts down the scheduler. Does not interrupt any currently running jobs.
Parameters: | wait (bool) – True to wait until all currently executing jobs have finished |
---|---|
Raises SchedulerNotRunningError: | |
if the scheduler has not been started yet |
Starts the scheduler. The details of this process depend on the implementation.
Raises SchedulerAlreadyRunningError: | |
---|---|
if the scheduler is already running |
Notifies the scheduler that there may be jobs due for execution. Triggers _process_jobs() to be run in an implementation specific manner.
APScheduler API -- apscheduler.schedulers.base
标签:des http os io strong for ar art div
原文地址:http://www.cnblogs.com/fendou-999/p/3929254.html