databay.planners.aps_planner¶
See also
Scheduling to learn more about scheduling in Databay.
BasePlannerfor the remaining interface of this planner.
Contents:
Planner implementing scheduling using the Advanced Python Scheduler. Scheduling sets the |
|
Planner implementing scheduling using the Advanced Python Scheduler. Scheduling sets the |
-
class
databay.planners.aps_planner.ApsPlanner(links: Union[Link, List[Link]] = None, threads: int = 30, executors_override: dict = None, job_defaults_override: dict = None, ignore_exceptions: bool = False, catch_exceptions: bool = None, immediate_transfer: bool = True)[source]¶ databay.planners.aps_planner.ApsPlanner
Planner implementing scheduling using the Advanced Python Scheduler. Scheduling sets the
APS Jobas links’ job.- Parameters
links (
Linkor list[Link]) – Links that should be added and scheduled.Default:Nonethreads (int) – Number of threads available for job execution. Each link will be run on a separate thread job.
Default:30executors_override (dict) – Overrides for executors option of APS configuration
Default:Nonejob_defaults_override (dict) – Overrides for job_defaults option of APS configuration
Default:Noneignore_exceptions (bool) – Whether exceptions should be ignored or halt the planner.
Default:Falseimmediate_transfer (
bool) – Whether planner should execute one transfer immediately upon starting.Default:True
Bases:
databay.base_planner.BasePlanner-
start(self)[source]¶ Start this planner. Calls
APS Scheduler.start()See Start and Shutdown to learn more about starting and shutdown.
-
pause(self)[source]¶ Pause this planner. Calls
APScheduler.pause()
-
resume(self)[source]¶ Resume this planner. Calls
APScheduler.resume()
-
shutdown(self, wait: bool = True)[source]¶ Shutdown this planner. Calls
APScheduler.shutdown()See Start and Shutdown to learn more about starting and shutdown.
- Parameters
wait (bool) – Whether to wait until all currently executing jobs have finished.
Default:True
-
class
databay.planners.aps_planner.APSPlanner(*args, **kwargs)[source]¶ databay.planners.aps_planner.APSPlanner
Planner implementing scheduling using the Advanced Python Scheduler. Scheduling sets the
APS Jobas links’ job.- Parameters
links (
Linkor list[Link]) – Links that should be added and scheduled.Default:Nonethreads (int) – Number of threads available for job execution. Each link will be run on a separate thread job.
Default:30executors_override (dict) – Overrides for executors option of APS configuration
Default:Nonejob_defaults_override (dict) – Overrides for job_defaults option of APS configuration
Default:Noneignore_exceptions (bool) – Whether exceptions should be ignored or halt the planner.
Default:Falseimmediate_transfer (
bool) – Whether planner should execute one transfer immediately upon starting.Default:True