Xspatula job file (project) structure
A job file is a JSON file defining:
- a job_folder where other files related to this job (project) are found,
- the process_sub_folder in that job_folder where the actual process files are stored, and
- one of the following three objects: pilot_file, pilot_list or process_file.
Example of a job file linking to an external list of process files in a pilot_file:
{
"process": {
"job_folder": "setup_db",
"process_sub_folder": "process_files",
"pilot_file": "db_setup.txt"
}
Example of a job file linking to a list of internally defined process file:
{
"process": {
"job_folder": "setup_db",
"process_sub_folder": "process_files",
"pilot_list": [
schema_v10_sql.json,
processes_v10_sql.json,
processes_records_v10_sql.json,
utility_v10_sql.json,
community_organisation_v10_sql.json,
community_organisation_records_v10_sql.json
]
}
}
Example of a job file linking to a single process file:
{
"process": {
"job_folder": "setup_db",
"process_sub_folder": "process_files",
"process_file": "schema_v10_sql.json"
}
}
Hierarchical path structure
The directory entered as the object job_folder must be directly under the project_path where the job file itself is saved. There is no option for changing a project hierarchy inside a project. You can, however, name the job_folder freely. The object process_sub_folder in the job file likewise always looks for a folder directly under the job_folder, and this is where you must store the process files that define what the framework should do. You can also freely name the process_sub_folder.