Changeset 16 for trunk/pbs_drmaa
- Timestamp:
- 04/21/11 18:28:03 (14 years ago)
- Location:
- trunk/pbs_drmaa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pbs_drmaa/job.c
r15 r16 193 193 conn_lock = fsd_mutex_lock( &self->session->drm_connection_mutex ); 194 194 retry: 195 195 196 #ifdef PBS_PROFESSIONAL 196 197 status = pbs_statjob( session->pbs_conn, self->job_id, NULL, NULL ); -
trunk/pbs_drmaa/submit.c
r12 r16 179 179 self->destination_queue, NULL ); 180 180 181 fsd_log_info(("pbs_submit( ) =%s", job_id));181 fsd_log_info(("pbs_submit(%s, %s) =%s", self->script_filename, self->destination_queue, job_id)); 182 182 183 183 if( job_id == NULL ) … … 590 590 const char *native_specification ) 591 591 { 592 fsd_log_enter(( "({native_specification=%s})", native_specification )); 593 592 594 if( native_specification == NULL ) 593 595 native_specification = self->job_template->get_attr( … … 614 616 arg, native_specification); 615 617 616 case 'h' :617 pbs_attr->set_attr( pbs_attr, "Hold_Types" , arg );618 break;619 620 618 opt = arg[1]; 621 619 … … 671 669 case 'q' : 672 670 self->destination_queue = fsd_strdup( arg ); 671 fsd_log_debug(("self->destination_queue = %s", self->destination_queue)); 673 672 break; 674 673 case 'r' : -
trunk/pbs_drmaa/util.c
r13 r16 84 84 85 85 _pbs_errno = pbs_errno; 86 /* 87 * Gathering error messages differ between PBS forks. 88 * - OpenPBS - ... 89 * - Torque - pbse_to_txt takes PBS error code (stored in pbs_errno) 90 * and returns corresponding error message. 91 * - PBS Pro - stores errno of last operation inside pbs_errno variable; 92 * pbse_to_txt always return NULL. 93 * All of them define pbs_geterrmsg which returns last error message 94 * for given connection. 95 */ 96 /* XXX: PBSPro has some link problems with pbse_to_txt function */ 97 #if PBS_PROFESSIONAL_NO_LOG 86 87 #ifndef PBS_PROFESSIONAL_NO_LOG 98 88 message = pbse_to_txt( pbs_errno ); 99 89 #else 100 90 message = "pbs error"; 101 91 #endif 102 103 92 104 93 fsd_errno = pbsdrmaa_map_pbs_errno( _pbs_errno );
Note: See TracChangeset
for help on using the changeset viewer.