Skip to main content

taskferry-cloudrun

Run Taskferry jobs on Google Cloud Run Jobs — serverless, run-to-completion container workloads.

flowchart LR
    APP["Application"]
    TP["Taskferry"]
    AD["taskferry-cloudrun"]
    CR["Cloud Run Jobs"]
    C["container"]

    APP --> TP --> AD --> CR --> C

This is the adapter that shows why Task and Job are separate primitives. A Cloud Run Job has its own image, its own resource envelope, its own timeout and scales to zero — none of which is "a task that takes a while".

Install

pip install 'taskferry-cloudrun[gcp]'

Use

from taskferry import Taskferry, Resources

runtime = Taskferry.from_mapping(
    {
        "backends": {
            "heavy": {
                "factory": "cloudrun",
                "project": "my-project",
                "location": "europe-west1",
            }
        },
        "defaults": {"job": "heavy"},
    }
)

handle = runtime.jobs.submit(
    "build-cog",
    args=["--input", "gs://bucket/scene.tif"],
    env={"GDAL_CACHEMAX": "512"},
    timeout=3600,
)
print(handle.status())

Capabilities

Capability Supported Why
SUBMIT · STATE · CANCEL · LOGS yes the Executions API
ENVIRONMENT · PARALLELISM · TIMEOUT · RETRY yes per-execution overrides
CPU · MEMORY · GPU no they live on the Job resource, not the execution

A spec asking for Resources(gpu=1) is rejected at submit time rather than run on a CPU. Route GPU work at a backend that really allocates GPUs (taskferry-jobs[kubernetes], taskferry-jobs[aws]).

Deploy the Job resource itself with Terraform or gcloud; Taskferry starts executions of it.

Testing

Both clients are injectable, so the whole suite runs with no GCP account:

CloudRunJobBackend(project="p", location="eu", jobs_client=FakeJobs())

License

Apache-2.0.

Release files for taskferry-cloudrun 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taskferry-cloudrun 0.3.0
File Size Uploaded
taskferry_cloudrun-0.3.0.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for taskferry-cloudrun 0.3.0
File Interpreter ABI Platform
taskferry_cloudrun-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / taskferry_cloudrun-0.3.0.tar.gz

Download URL taskferry_cloudrun-0.3.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5c0ef0dfde29124d3f0bf043f0a7c4d62773bc5caaefabbe3eb75998ebcd4825
BLAKE2b-256 checksum
How to use checksums
5fea28a21a603a52985f14bd74fb972116a6cccf70ceb3fe188e2a8ed6f0c197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / taskferry_cloudrun-0.3.0-py3-none-any.whl

Download URL taskferry_cloudrun-0.3.0-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31db1a680bc1d8e5644ac4c2f609cdc65eb8bb89bfc9e70e5b69b7a22dd99e13
BLAKE2b-256 checksum
How to use checksums
beccfcad9f9e140be79c621070cf5a2a46a01e98dbd8b1b5af539a9b79bcf810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page