This module implements batch job submission to multiple systems, currently Condor and plain Unix processes. The simplifies the construction of parallel abstractions that need a simple form of parallel process execution.
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | batch_job_info |
Describes a batch job when it has completed. More... | |
Typedefs | |
typedef int | batch_job_id_t |
An integer type indicating a unique batch job number. | |
Enumerations | |
enum | batch_queue_type_t { BATCH_QUEUE_TYPE_UNIX, BATCH_QUEUE_TYPE_CONDOR, BATCH_QUEUE_TYPE_SGE, BATCH_QUEUE_TYPE_WORK_QUEUE } |
Indicates which type of batch submission to use. More... | |
Functions | |
batch_queue * | batch_queue_create (batch_queue_type_t type) |
Create a new batch queue. | |
void | batch_queue_delete (struct batch_queue *q) |
Delete a batch queue. | |
batch_job_id_t | batch_job_submit (struct batch_queue *q, const char *cmd, const char *args, const char *infile, const char *outfile, const char *errfile, const char *extra_input_files, const char *extra_output_files) |
Submit a batch job.. | |
batch_job_id_t | batch_job_wait (struct batch_queue *q, struct batch_job_info *info) |
Wait for any batch job to complete. | |
int | batch_job_remove (struct batch_queue *q, batch_job_id_t jobid) |
Remove a batch job. |
|
An integer type indicating a unique batch job number.
|
|
Indicates which type of batch submission to use.
|
|
Create a new batch queue.
|
|
Delete a batch queue.
|
|
Submit a batch job..
|
|
Wait for any batch job to complete. Blocks until a batch job completes.
|
|
Remove a batch job. This call will start the removal process. You must still call batch_job_wait to wait for the removal to complete.
|