Skip to main content

Gum background jobs SDK

Project description

Gum Python SDK

pip install usegum
gum login
import gum

openai_limit = gum.rate_limit("60/m")

@gum.job(retries=5, timeout="5m", cpu=2, memory="1gb", rate_limit=openai_limit, concurrency=5, key="customer_id")
def sync_customer(customer_id: str):
    ...

@gum.job(cron="0 9 * * 1", timezone="America/New_York")
def refresh_index():
    ...

sync_customer.enqueue(customer_id="cus_123")
sync_customer.enqueue(customer_id="cus_123", delay="10m")
gum deploy
gum get <run_id>
gum logs <run_id>

Optional operator mode (infrastructure only): auto-sync runner capacity during deploy.

export GUM_COMPUTE_PROVIDER=fly
export FLY_RUNNER_APP=gum-runner-stg
export GUM_RUNNER_PARALLELISM=1
gum deploy

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

usegum-0.2.9.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

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

usegum-0.2.9-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file usegum-0.2.9.tar.gz.

File metadata

  • Download URL: usegum-0.2.9.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for usegum-0.2.9.tar.gz
Algorithm Hash digest
SHA256 0ea25404d6ae1857ac52bf03270eac4f348f078f2669605f97f8d198b447e073
MD5 7a3f2418e336ae316a7939b4057fb6b4
BLAKE2b-256 eed54eb93e229c2e6272e0739063dfbfc6d354bdb0287571ddc079f7dea56411

See more details on using hashes here.

Provenance

The following attestation bundles were made for usegum-0.2.9.tar.gz:

Publisher: release-pypi.yml on Ekom2004/Gum

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

File details

Details for the file usegum-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: usegum-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for usegum-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8be4751386d0e6df8d066ea6560272125ec0c8fbb63e538f0b0e22ae23595123
MD5 4464ff9d32816c21d332f7004e826da4
BLAKE2b-256 323306d0d83edbe6ff9e532fdba80382b72f74aed32665e0e5e2aa0abc3bd485

See more details on using hashes here.

Provenance

The following attestation bundles were made for usegum-0.2.9-py3-none-any.whl:

Publisher: release-pypi.yml on Ekom2004/Gum

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