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.7.tar.gz (35.8 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.7-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usegum-0.2.7.tar.gz
  • Upload date:
  • Size: 35.8 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.7.tar.gz
Algorithm Hash digest
SHA256 d670e0e5620171314858aa215464ce28df3cd7f543e64991dc9c1e043d1eadf2
MD5 b55a90a0bf6519c9e7c618bbf5aee276
BLAKE2b-256 b88faa17413b4eb31a0e3e0ea9a5bc3e2debaf5654e2eda45d55ae1ee82857a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for usegum-0.2.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: usegum-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 28.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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2354474675ab35a882fe626d1aae159fcced19f4b29a88547705e2d891f79b83
MD5 09c1ef19864fcded73376c8dd3c05621
BLAKE2b-256 fe2c478c19d9fbd8908d14a453ca94c2f491c825d5b3b32839072baef927792f

See more details on using hashes here.

Provenance

The following attestation bundles were made for usegum-0.2.7-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