NAME

MediaCloud::JobManager - Perl worker / client library for running jobs asynchronously.

SYNOPSIS

use MediaCloud::JobManager;

DESCRIPTION

Run jobs locally, remotely or remotely + asynchronously.

EXPORT

None by default.

AUTHOR

Linas Valiukas, <lvaliukas@cyber.law.harvard.edu>

COPYRIGHT AND LICENSE

Copyright (C) 2013- Linas Valiukas, 2013- Berkman Center for Internet & Society.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.

(static) job_status($function_name, $job_id[, $config])

Get job status.

Parameters:

  • Function name (e.g. "NinetyNineBottlesOfBeer")

  • Job ID (e.g. "H:localhost.localdomain:8")

Returns hashref with the job status, e.g.:

Returns undef if the job ID was not found; dies on error.