Skip to main content

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

TASK_ID="...
JOB_DATE="..."
CAPTURE_CONNECTION_STRING="..." 
CAPTURE_CONTAINER_NAME="..."
poetry run python -m capturejob 

echo "Done"

Configuration

The following environment variables need to be set

  • TASK_ID: A name of the job which is used in the storage folder name created
  • JOB_DATE: The date 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


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.3.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capturejob-0.3.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file capturejob-0.3.1.tar.gz.

File metadata

  • Download URL: capturejob-0.3.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-35-generic

File hashes

Hashes for capturejob-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0ac8fec1f742b9bb623fc2674c64d26975021c23c55d28a450435c95febd0b75
MD5 e0d878648eaf664d9c27e7784b281e70
BLAKE2b-256 a306ef384ad1ccdf7ff732ddae3ae125febe7a4bca0764ee86185a10131cd20e

See more details on using hashes here.

File details

Details for the file capturejob-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: capturejob-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-35-generic

File hashes

Hashes for capturejob-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a21f858125d5f391614a2c1189469c9133b5d53cabf4c0f9324aca26b79f8f4a
MD5 6bad1764083eda55bd05771da9d8ff17
BLAKE2b-256 9bd4a02d6319171cb17feaa80efc7b0a9498955ebfc27e5becbc4efb4d434f79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page