pyams_scheduler package ⊞

pyams_scheduler.includeme(config)[source]

Pyramid include

Split in another package to remove cyclic dependencies with TranslationStringFactory

pyams_scheduler.include

pyams_scheduler.process

pyams_scheduler.scheduler

class pyams_scheduler.scheduler.Scheduler[source]

Bases: zope.container.folder.Folder

Scheduler utility

get_jobs()[source]
static get_socket()[source]

Open ØMQ socket

get_task(task_id)[source]
history
internal_id
report_mailer

Reports mailer: Mail delivery utility used to send mails

report_source

Reports source: Mail address from which reports will be sent

tasks
test_process()[source]

Send test request to scheduler process

zodb_name

ZODB connection name: Name of ZODB defining scheduler connection

class pyams_scheduler.scheduler.SchedulerHandler[source]

Bases: object

Scheduler handler utility

This is just a ‘marker’ utility which is used to mark nodes in a cluster which should run the scheduler

pyams_scheduler.site

pyams_scheduler.ssh

pyams_scheduler.task

pyams_scheduler.trigger

class pyams_scheduler.trigger.CronTaskScheduleInfo[source]

Bases: persistent.Persistent

Cron-style schedule info

active

Active task: You can disable a task by selecting ‘No’

day

Month days: Days (1-31) for which to schedule the job

day_of_week

Week days: Week days (0-6, with 0 as monday) for which to schedule the job

end_date

Last execution date: Date past which scheduling should end

hour

Hours: Hours (0-23) for which to schedule the job

minute

Minutes: Minutes (0-59) for which to schedule the job

month

Months: Months (1-12) for which to schedule the job

second

Seconds: Seconds (0-59) for which to schedule the job

start_date

First execution date: Date from which scheduling should start

week

Weeks: Year weeks (1-53) for which to schedule the job

year

Years: Years for which to schedule the job

class pyams_scheduler.trigger.CronTaskScheduler[source]

Bases: object

Cron-style scheduler mode

get_trigger(task)[source]
marker_interface = <InterfaceClass pyams_scheduler.interfaces.ICronTask>
schema = <InterfaceClass pyams_scheduler.interfaces.ICronTaskScheduling>
class pyams_scheduler.trigger.DateTaskScheduleInfo[source]

Bases: persistent.Persistent

Date-style schedule info

active

Active task: You can disable a task by selecting ‘No’

start_date

Execution date: Date on which execution should start

class pyams_scheduler.trigger.DateTaskScheduler[source]

Bases: object

Date-style scheduler mode

get_trigger(task)[source]
marker_interface = <InterfaceClass pyams_scheduler.interfaces.IDateTask>
schema = <InterfaceClass pyams_scheduler.interfaces.IDateTaskScheduling>
class pyams_scheduler.trigger.LoopTaskScheduleInfo[source]

Bases: persistent.Persistent

Loop-style schedule info

active

Active task: You can disable a task by selecting ‘No’

days

Days interval: Number of days between executions

end_date

Last execution date: Date past which scheduling should end

hours

Hours interval: Number of hours between executions

minutes

Minutes interval: Number of minutes between executions

seconds

Seconds interval: Number of seconds between executions

start_date

First execution date: Date from which scheduling should start

weeks

Weeks interval: Number of weeks between executions

class pyams_scheduler.trigger.LoopTaskScheduler[source]

Bases: object

Loop-style scheduler mode

get_trigger(task)[source]
marker_interface = <InterfaceClass pyams_scheduler.interfaces.ILoopTask>
schema = <InterfaceClass pyams_scheduler.interfaces.ILoopTaskScheduling>
class pyams_scheduler.trigger.SchedulingModesVocabulary(context, **kw)[source]

Bases: zope.componentvocabulary.vocabulary.UtilityVocabulary

Scheduling modes vocabulary

interface = <InterfaceClass pyams_scheduler.interfaces.ITaskSchedulingMode>
nameOnly = True
pyams_scheduler.trigger.cron_task_scheduler_info_factory(context)[source]

Cron-style task scheduling info factory

pyams_scheduler.trigger.date_task_scheduler_info_factory(context)[source]

Date-style task scheduling info factory

pyams_scheduler.trigger.loop_task_scheduler_info_factory(context)[source]

Loop-style task scheduling info factory

pyams_scheduler.url

pyams_scheduler.zodb