Module - python_job.jobs.job_python_job

JobConfig

JSON configuration for Job

type

object

properties

  • venv_dir

Venv Dir

Path to the virtual environment directory.

type

string

  • requirements_file_path

Requirements File Path

Path to the requirements.txt file.

type

string

  • requirements_body

Requirements Body

Requirements.txt file content.Can be empty if requirements_file_path is provided.

type

string

default

  • python_file_path

Python File Path

Path to the python file.

type

string

  • python_file_body

Python File Body

Python file content.Can be empty if python_file_path is provided.

type

string

default

  • args

Args

Args passed to python job at runtime, available within the job via sys.argv.

type

array

default

items

  • pip_cache

Pip Cache

Use pip cache.

type

boolean

default

True

  • env_vars

Env Vars

Environment variables.

type

object

  • timeout

Timeout

Job timeout in seconds.

type

integer