Helios::Worker

Base class for workers in the Helios job processing system
Download

Helios::Worker Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Johnson
  • Publisher web site:

Helios::Worker Tags


Helios::Worker Description

Base class for workers in the Helios job processing system Helios::Worker has been DEPRECATED and is included only to support Helios 1.x applications. See Helios::Service for creating new Helios worker classes/services. Helios::Worker is the base class for all worker classes intended to be run by the Helios parallel job processing system. It encapsulates functions of the underlying TheSchwartz job queue system and provides additional methods to handle configuration, job argument parsing, logging, and other functions. A Helios::Worker subclass must implement the work() method. It may also implement the max_retries() and retry_delay() methods if failed jobs of your class should be retried. The other Helios::Worker methods are available for use during job processing. When job processing is completed, the job should be marked as completed successfully or failed by using the completedJob(), failedJob(), and failedJobPermanent() methods. If your worker class supports OVERDRIVE mode operation, it should also call the shouldExitOverdrive() method at the end of your work() method and explicitly exit() if shouldExitOverdriver() returns a true value. (If supporting OVERDRIVE, your worker class should also explicitly exit() if job processing fails to prevent errors from affecting future jobs.) Requirements: · Perl


Helios::Worker Related Software