Logo Search packages:      
Sourcecode: pbs-drmaa version File versions

int drmaa_job_ps ( const char *  job_id,
int *  remote_ps,
char *  error_diagnosis,
size_t  error_diag_len 
)

The drmaa_job_ps() function SHALL store in remote_ps the program status of the job identified by job_id. The possible values of a program's staus are:

  • DRMAA_PS_UNDETERMINED
  • DRMAA_PS_QUEUED_ACTIVE
  • DRMAA_PS_SYSTEM_ON_HOLD
  • DRMAA_PS_USER_ON_HOLD
  • DRMAA_PS_USER_SYSTEM_ON_HOLD
  • DRMAA_PS_RUNNING
  • DRMAA_PS_SYSTEM_SUSPENDED
  • DRMAA_PS_USER_SUSPENDED
  • DRMAA_PS_DONE
  • DRMAA_PS_FAILED Terminated jobs have a status of DRMAA_PS_FAILED.

Definition at line 336 of file drmaa_base.c.

References fsd_drmaa_session_get().

{
      DRMAA_API_BEGIN
      fsd_drmaa_session_t *volatile session = NULL;

      fsd_log_enter(( "(job_id=%s)", job_id ));
      if( job_id == NULL )
            fsd_exc_raise_code( FSD_ERRNO_INVALID_ARGUMENT );

      TRY
       {
            session = fsd_drmaa_session_get();
            session->job_ps( session, job_id, remote_ps );
       }
      FINALLY
       {
            if( session )
                  session->release( session );
       }
      END_TRY

      fsd_log_return(( "(job_id=%s) =0: remote_ps=%s (0x%02x)",
                        job_id, drmaa_job_ps_to_str(*remote_ps), *remote_ps ));
      DRMAA_API_END
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index