A library to capture job outputs to persistent storage
Project description
CaptureJob
This library provides the ability to copy stdout and stderr files to cloud storage.
Usage
Programmatically it is used like this:
from capturejob import CaptureJob
CaptureJob()
but mainly its intended to be used in a dockerfile command script followng execution of a command script.
echo "Running batch"
cd /work && poetry run python src/etl_noop/batchrun.py
JOB="...
CAPTURE_CONNECTION_STRING="..."
CAPTURE_CONTAINER_NAME="..."
poetry run python -m capturejob
echo "Done"
Configuration
The following environment variables need to be set
- JOB: A name of the job which is used in the storage folder name created
- CAPTURE_CONNECTION_STRING: Azure connection string
- CAPTURE_CONTAINER_NAME: Azure container name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
capturejob-0.1.4.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for capturejob-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | add9308a254d238f64fd5aaa6a11c86b036db950117a69794993b91b780a5015 |
|
MD5 | 5ead78338a42f30dcebc494bff58ccaf |
|
BLAKE2b-256 | 137ebb1a395ea9c7f194dfcd69bd1d422e21e7b8a6ecef8af5a4358826ee166f |