Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What features are available to delay processing of jobs (sleep/wake)?

delay features jobs sleep Wake
0
Posted

What features are available to delay processing of jobs (sleep/wake)?

0

The following delays are implemented: A simple way to make a job sleep and wake up is to configure a repeat interval in hours, minutes and seconds. In this case the job is not exactly “delayed” but will be restarted as soon as the interval has elapsed. A job can delay its processing by the Job Scheduler API method delay_spooler_process(seconds_or_hhmmss). This is available only if the job implements the method spooler_process() of the API. In this case the job remains loaded, i.e. it is in processing but uses no CPU until the scheduled interval has elapsed. A job can be configured for restart should an error have occurred, for example by configuration or API methods: spooler_job.delay_after_error( 2 ) = 10; // 10 seconds spooler_job.delay_after_error( 5 ) = “00:01”; // one minute spooler_job.delay_after_error( 10 ) = “24:00”; // one day spooler_job.delay_after_error( 20 ) = “STOP”; In this example, the Job Scheduler repeats a job immediately after a (first) error occurs. After two to f

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123