Job Package config.yaml
Introduction
This document describes the required and possible auxiliary configuration parameters for the Job Packages created by users for packaging their code for execution by the LabScale agent. These parameters reside in the config.yaml file found in the package's root folder.
Required configuration items
The following configuration items define the minimalest set of options required for a functional Job Package.
name: the-package-name
version: 1.0.0
cmd: ${DIR}/main_script
name
This name configuration item is the given name of the Job Package.
version
The version configuration item is the version of the Job Package and is used to determine if the new job package has been updated and requires replacement within the download cache.
cmd
This is the path to the script called by the agent when executing the Job. Environment variables are available and can be used for substitutions. However, the variable DIR is only available within this context and represents the path to the unpacked job package.
Optional configuration options
ignore_rc: true/false
ignore_timeout: true/false
ignore_runtime_rc: true/false
setup_cmd: ${DIR}/setup.sh
cleanup_cmd: ${DIR}/cleanup.sh
early_device_release: true/false
teardown_timeout: 0
results_timeout: 0
adapter:
name: pytest_stdout_adapter
URI: https://files.labscale.com/adapter/pytest_stdout_adapter.tgz
artifacts:
location: ${DIR}/artifact/dir/
frequency: 15
type: jfile
call_hook: ${DIR}/script
ignore_timeout
The ignore_timeout configuration option accepts a simple true or false boolean value and tells the agent to show the job as completed instead of timed out if the task is terminated due to a timeout.