| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
For more complete documentation, please see: https://python-batch-runner.readthedocs.io/
python-batch-runner is a microframework to assist with building small to medium scale batch applications without needing to build the scaffolding from scratch.
It provides the following with zero or minimal setup required:
pip install python-batch-runnerA simple setup function is included and can be run by executing:
pyrunner --setupThis will prompt you for three inputs:
Upon completion, a new directory at the provided (or default/current) path will be created, along with minimum necessary subdirectory and files.
Upon above setup, the following three files will be generated:
| Option | Argument | Description |
|---|---|---|
| --env | [variable_name]=[variable_value] | Set environment variable - equivalent to export [variable_name]=[variable_value] |
| --cvar | [variable_name]=[variable_value] | Set context variable to be available at the start of job. |
| -r | Restart flag. Causes PyRunner to check the APP_TEMP_DIR for existing *.ctllog files to restart a job from failure. Fresh run if no *.ctllog file found. | |
| -n or --max-procs | integer | Sets the absolute maximum number of parallel processes allowed to run concurrently. |
| -x or --exec-only | comma separated list of process ID's | Executes only the given process ID(s) from the .lst file. |
| --exec-proc-name | single process name | Similar to --exec-only - Executes only the process ID identified by the given process name. |
| -A or --to or --ancestors | single process ID | Executes given process ID and all preceding/ancestor processes. |
| -D or --from or --descendents | single process ID | Executes given process ID and all subsequent/descendent processes. |
| -N or --norun | comma separated list of process ID's | Prevents the given process ID(s) from executing. |
| -e or --email | email address | Sets email address to send job notification email after run completion. Overrides all other APP_EMAIL settings. |
| --es or --email-on-success | true/false or 1/0 | Enables or disables email notifications when job exits with success. Default is True. |
| --ef or --email-on-fail | true/false or 1/0 | Enables or disables email notifications when job exits with failure. Default is True. |
| -i or --interactive | Primarily for use with -x option. Launches in interactive mode which will request input from user if a Context variable is not found. | |
| -d or --debug | Debug option that only serves to provide a more detailed output during execution to show names of pending, running, failed, etc. tasks. | |
| --dump-logs | Enables job to dump to STDOUT logs for all failed tasks after job exits. | |
| --nozip | Disables zipping of log files after job exits. | |
| -t or --tickrate | Sets the number of checks per second that the execution engine performs to poll running processes. | |
| -h or --help | Prints out options and other details. | |
| -v or --version | Prints out the installed PyRunner version. |
Please read the CONTRIBUTING file for more details.
python-batch-runner is released under the Apache 2.0 License. Please read the LICENSE file for more details.
| Back | FazBrowse Home | New Git URL |