Skip to content

config schwartzclientdeadline

Byrne edited this page Nov 1, 2010 · 1 revision

SchwartzClientDeadline

Defines a limit, in seconds, on the amount of time that a given MT::TheSchwartz work_until_done loop should spend processing the queue. When the MT::Schwartz object begins processing jobs, the epoch is recorded. After each MT::TheSchwartz::Job is marked complete or failed, the current time is checked. When the current time is more than SchwartzClientDeadline seconds after the moment that the loop was entered, work_until_done returns, allowing the calling process to proceed as though all jobs had been processed. This will not affect the performance of any Schwartz tasks once they are begun; it is only checked before beginning each new Schwartz job.

Default

disabled

Values

  • integer (time in seconds, common values are 5 to 8 minutes or 300 to 480 seconds respectively)

Example

Specify 300 seconds (5 minutes):

SchwartzClientDeadline 300

Related

Clone this wiki locally