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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file usegum-0.2.4.tar.gz.
File metadata
- Download URL: usegum-0.2.4.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
532227d7a8bb60514fd34334b279e8e00234a608d750ea94dfa9428c056766b8
|
|
| MD5 |
5e78c2f033e33662b392da406acf4971
|
|
| BLAKE2b-256 |
edfb7192bd0d089031ed3fb663008dd761fd024871925051699ded71036cd8aa
|
Provenance
The following attestation bundles were made for usegum-0.2.4.tar.gz:
Publisher:
release-pypi.yml on Ekom2004/Gum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
usegum-0.2.4.tar.gz -
Subject digest:
532227d7a8bb60514fd34334b279e8e00234a608d750ea94dfa9428c056766b8 - Sigstore transparency entry: 1419153903
- Sigstore integration time:
-
Permalink:
Ekom2004/Gum@266050cdb8eeddac447e9c389f2a82879e02b94e -
Branch / Tag:
refs/tags/usegum-v0.2.4 - Owner: https://github.com/Ekom2004
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@266050cdb8eeddac447e9c389f2a82879e02b94e -
Trigger Event:
push
-
Statement type:
File details
Details for the file usegum-0.2.4-py3-none-any.whl.
File metadata
- Download URL: usegum-0.2.4-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f2582e33b66a75fb0a58d3d8b89bfa9fca1f0b3fbea20fce9d51a6113b0ffbc
|
|
| MD5 |
9a5fedb71a9c3677f5f0c2f0c2963700
|
|
| BLAKE2b-256 |
de5e427accf7a4be21d14ccf3f7a48316682add23ede8e9ae156a33ffcfed626
|
Provenance
The following attestation bundles were made for usegum-0.2.4-py3-none-any.whl:
Publisher:
release-pypi.yml on Ekom2004/Gum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
usegum-0.2.4-py3-none-any.whl -
Subject digest:
4f2582e33b66a75fb0a58d3d8b89bfa9fca1f0b3fbea20fce9d51a6113b0ffbc - Sigstore transparency entry: 1419153992
- Sigstore integration time:
-
Permalink:
Ekom2004/Gum@266050cdb8eeddac447e9c389f2a82879e02b94e -
Branch / Tag:
refs/tags/usegum-v0.2.4 - Owner: https://github.com/Ekom2004
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@266050cdb8eeddac447e9c389f2a82879e02b94e -
Trigger Event:
push
-
Statement type: