- 2.x tripal_core/api/tripal_core.jobs.api.inc tripal_jobs_api
- 1.x tripal_core/api/tripal_core_jobs.api.inc tripal_jobs_api
Tripal offers a job management subsystem for managing tasks that may require an extended period of time for completion. Drupal uses a UNIX-based cron job to handle tasks such as checking the availability of updates, indexing new nodes for searching, etc. Drupal's cron uses the web interface for launching these tasks, however, Tripal provides several administrative tasks that may time out and not complete due to limitations of the web server. Examples including syncing of a large number of features between chado and Drupal. To circumvent this, as well as provide more fine-grained control and monitoring, Tripal uses a jobs management sub-system built into the Tripal Core module. It is anticipated that this functionality will be used for managing analysis jobs provided by future tools, with eventual support for distributed computing.
The Tripal jobs management system allows administrators to submit tasks to be performed which can then be launched through a UNIX command-line PHP script or cron job. This command-line script can be added to a cron entry along-side the Drupal cron entry for automatic, regular launching of Tripal jobs. The order of execution of waiting jobs is determined first by priority and second by the order the jobs were entered.
The API functions described below provide a programmatic interface for adding, checking and viewing jobs.
api/ tripal_core.jobs.api.inc, line 8
- Tripal offers a job management subsystem for managing tasks that may require an extended period of time for completion.
||Adds a job to the Tripal Jbo queue|
||Cancel a Tripal Job currently waiting in the job queue|
||Returns a list of jobs that are active.|
||Retrieve information regarding a tripal job|
||Returns the end time for a given job|
||Returns the start time for a given job|
||Returns the date the job was added to the queue|
||Indicates if any jobs are running.|
||A function used to manually launch all queued tripal jobs|
||Check for too many concurrent jobs|
||Set a job to be re-ran (ie: add it back into the job queue)|