|
Tripal
|


Public Member Functions | |
| setParallel ($do_parallel, $max_num_jobs) | |
Protected Member Functions | |
| executeTask ($iteration_number) | |
| getTripalJobID () | |
| runTripalJob ($job_id) | |
| runParallelTripalJob ($job_id) | |
| runSequentialTripalJob ($job) | |
| checkJobStatus ($job_id=FALSE) | |
| getStatusDetails () | |
Protected Attributes | |
| $loop_interval = 20 | |
| $tripal_jobs = [] | |
| $queue = [] | |
| $do_parallel = FALSE | |
| $max_num_jobs = 3 | |
This is the main class for the Tripal Daemon.
It extends the DaemonAPIDaemon class provided by the Daemon API in order to implement tripal job checking and execution functionality.
|
protected |
Check the status of a given (or all running) jobs.
| $job_id | The job_id of a specific job to check the status us. (OPTIONAL) |
|
protected |
Implements DaemonAPIDaemon::executeTask() function.
This gets executed once per loop iteration & does the following:
This function will log how many jobs have been found and when each one was started/completed, as well as, it's status upon completion.
| int | $iteration_number | This is an integer stating the current iteration of the loop you are on. |
|
protected |
Override to include additional daemon-specific settings for use in reports.
|
protected |
Get job_id of Tripal Job to run.
NOTE: This function should only return a job_id if we are aloud to run it.
|
protected |
Run Parallel Tripal Job.
|
protected |
Run Sequential Tripal Job.
|
protected |
Run Tripal Job.
| TripalDaemon::setParallel | ( | $do_parallel, | |
| $max_num_jobs | |||
| ) |
Set whether we should run parallel jobs or not.
| $do_parallel | Boolean indicating whether to allow parallel processing of jobs. |
| $max_num_jobs | Integer indicating the maximum number of jobs to run at once. |