Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The next thing ecFlow will do is create the job file by adding all include files and substituting ecFlow variables (see the next chapter on "The ecFlow Pre-processor" for more details). To test if ecFlow can find all the include files and variables click the edit tab in ecflow_ui, info panel. If you get the error message "send failed for the node" ecFlow may not be able to access the include files or some ecFlow variables have not been set. More details will be given in the ecFlow log files.

Using Python API to check, Location of ecFlow scripts and Creation of job file

Both of the above steps can be done using ecFlow python API. This should be done on the server-side, where the scripts are accessible. For more details see: Checking Job Creation

Code Block
languagepy
titleCheck job creation
import os
from ecflow import Defs,Suite,Task,Edit
    
home = os.path.join(os.getenv("HOME"),  "course")
defs = Defs(
        Suite('test',
            Edit(ECF_HOME=home),
            Task('t1')))
 
print("Checking job creation: .ecf -> .job0") 
print(defs.check_job_creation())

Submission of ecflow job file

...