Skip to main content

KBatch Papermill: Run papermill in kbatch

Project description

kbatch-papermill

Currently designed for Destination-Earth GFTS, it runs notebooks with papermill on Kubernetes via kbatch. It does not currently target general use because the following assumptions, specific to GFTS deployments, are made:

  1. Default AWS credentials are set up via environment variables, and work.
  2. Jobs should always run with the same $JUPYTER_IMAGE as the submitting environment.
  3. $JUPYTER_IMAGE has papermill.
  4. We have read/write access to S3 for both the code input directory and the output directory (completed job results).

Note that we do not use the ConfigMap approach to pass the code directory, because of the size limit on config maps. So we essentially replicate the code directory functionality of kbatch, but store in S3 instead.

We also add some generic functionality to make a nicer Python API for kbatch, which should perhaps be upstreamed. See _kbatch.py for most of that.

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

kbatch_papermill-0.1.0a1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

kbatch_papermill-0.1.0a1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file kbatch_papermill-0.1.0a1.tar.gz.

File metadata

  • Download URL: kbatch_papermill-0.1.0a1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for kbatch_papermill-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 db4c4a8509f60c851de7da4afef3a08e71925fabfa92d70e5a92ae3be09d32bb
MD5 170e6d198d88c2a9e72ca3ea4424e6a4
BLAKE2b-256 2ae184ff07d50f1299a9882e4f01562abae816c648881f887a0318d02cc28811

See more details on using hashes here.

Provenance

The following attestation bundles were made for kbatch_papermill-0.1.0a1.tar.gz:

Publisher: release.yaml on minrk/kbatch-papermill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kbatch_papermill-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for kbatch_papermill-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d02292e4b998c32bcdc12b74778b3bfee177b9edc0f1d2cccb7d8f4a43021247
MD5 f0c5631cfa72e5136bf8dd0be116208e
BLAKE2b-256 e3266dd3b239c339cd3f3963f35f7162909429c6016c715a6be5f9b9ddc6e055

See more details on using hashes here.

Provenance

The following attestation bundles were made for kbatch_papermill-0.1.0a1-py3-none-any.whl:

Publisher: release.yaml on minrk/kbatch-papermill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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