...
Code Block | ||||
---|---|---|---|---|
| ||||
defs = ecflow.Defs('my.def') # load file 'my.def' into memory, not needed if the defs was created in python msg = defs.check_job_creation() # job files generated to ECF_JOB print msg # report any errors in job generation |
For brevity, the following examples do not show how the 'defs' object was created. This can be read in from disk as shown above or created directly in python.
Code Block | ||||
---|---|---|---|---|
| ||||
job_ctrl = ecflow.JobGenCtrl() job_ctrl.set_node_path('/suite/to_check') # hierarchical job generation under /suite/to_check defs.check_job_generation(job_ctrl) # do the check print job_ctrl.get_error_msg() # report any errors in job generation |
This example shows the checking of job generation for all tasks, but where the jobs are generated to a user-specified directory. i.e. '/tmp/ECF_NAME.job0
...