NAME
Gearman::JobScheduler
- Gearman job scheduler utilities.
(static) job_status($function_name, $gearman_job_id[, $config])
Get Gearman job status.
Parameters:
Gearman function name (e.g. "NinetyNineBottlesOfBeer")
Gearman job ID (e.g. "H:localhost.localdomain:8")
(optional) Instance of Gearman::JobScheduler::Configuration
Returns hashref with the job status, e.g.:
Returns undef if the job ID was not found; dies on error.
(static) log_path_for_gearman_job($function_name, $gearman_job_handle[, $config])
Get a path to where Gearman expects to save the job's log.
(Note: if the job is not running or finished, the log path will be empty.)
Parameters:
Gearman function name (e.g. "NinetyNineBottlesOfBeer")
Gearman job ID (e.g. "H:localhost.localdomain:8")
(optional) Instance of Gearman::JobScheduler::Configuration
Returns log path where the job's log is being written, e.g. "/var/log/gjs/NinetyNineBottlesOfBeer/H_tundra.local_93.NinetyNineBottlesOfBeer().log"
Returns undef
if no log path was found.
die()s on error.