Functions | |
| int | drmaa_control (const char *jobid, int action, char *error_diagnosis, size_t error_diag_len) |
| int | drmaa_job_ps (const char *job_id, int *remote_ps, char *error_diagnosis, size_t error_diag_len) |
| int drmaa_control | ( | const char * | jobid, | |
| int | action, | |||
| char * | error_diagnosis, | |||
| size_t | error_diag_len | |||
| ) |
This function allows the job specified by jobid to be controlled according to a given action. Possible action to be performed over a given job are:
| jobid | String with the job unique identification as provided by the GridWay system. The jobid SHOULD be obtained from a drmaa_run_job() or drmaa_run_bulk_jobs() function calls. | |
| action | The action to be performed over the job whose value may be one of the following: DRMAA_CONTROL_SUSPEND, DRMAA_CONTROL_RESUME, DRMAA_CONTROL_TERMINATE, DRMAA_CONTROL_HOLD or DRMAA_CONTROL_RELEASE. | |
| error_diagnosis | string of characters with error related diagnosis information. The error diagnosis buffer will be filled in case of error. If the size of error_diagnosis buffer passed is smaller than the error message the resultant string will be truncated. | |
| error_diag_len | size of the error_diagnosis buffer. DRMAA_ERROR_STRING_BUFFER can be used for error_diag_len when appropiate. |
| int drmaa_job_ps | ( | const char * | job_id, | |
| int * | remote_ps, | |||
| char * | error_diagnosis, | |||
| size_t | error_diag_len | |||
| ) |
Obtains the status of a given job.
| *job_id | String with the job unique identification as provided by the GridWay system. The jobid SHOULD be obtained from a drmaa_run_job() or drmaa_run_bulk_jobs() function calls. | |
| *remote_ps | The actual state of the job. remote_ps can be one of the following:
|
The GridWay DRMAA implementation does not define the following actions: DRMAA_PS_SYSTEM_ON_HOLD, DRMAA_PS_USER_SYSTEM_ON_HOLD, DRMAA_PS_SYSTEM_SUSPENDED and DRMAA_PS_USER_SYSTEM_SUSPENDED.
| error_diagnosis | string of characters with error related diagnosis information. The error diagnosis buffer will be filled in case of error. If the size of error_diagnosis buffer passed is smaller than the error message the resultant string will be truncated. | |
| error_diag_len | size of the error_diagnosis buffer. DRMAA_ERROR_STRING_BUFFER can be used for error_diag_len when appropiate. |