1. drmaa2_j_get_jt(3)
  2. DRMAA2
  3. drmaa2_j_get_jt(3)

NAME

drmaa2_j_get_jt - drmaa2_j_get_jt, Returns the job template of a job.

SYNOPSIS

#include "drmaa2.h"

drmaa2_jtemplate drmaa2_j_get_jt(const drmaa2_j job);

DESCRIPTION

A DRMAA2 job is submitted with a drmaa2_jtemplate object, which describes the characteristics of the job (job name, command, parameter, resource selection etc.). This function returns a deep copy of the job template used for job submission. It is not available for jobs not submitted with DRMAA2, or after closing all DRMAA2 sessions (even when a session is reopened later). If the job session is closed the job templated is reaped internally only when the monitoring session is closed as well otherwise it stays in memory until the monitoring session is closed, too.

RETURN VALUES

Returns a newly allocated job template which was used for submitting the job. It must be freed from the caller. In case of an error NULL is returned and the error id and error message is set in the context of the calling thread.

SEE ALSO

drmaa2_geterror(3), drmaa2_geterror_text(3), drmaa2_j_suspend(3), drmaa2_j_resume(3), drmaa2_j_hold(3), drmaa2_j_release(3), drmaa2_j_terminate(3), drmaa2_j_get_id(3), drmaa2_j_get_session_name(3), drmaa2_j_get_jt(3), drmaa2_j_get_state(3), drmaa2_j_get_info(3), drmaa2_j_wait_started(3), drmaa2_j_wait_terminated(3), drmaa2_jsession_run_job(3), drmaa2_j_free(3)

AUTHOR

Copyright Univa Corporation 2013

  1. Univa Corporation
  2. October 2013
  3. drmaa2_j_get_jt(3)