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.2.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.2.0
File Size Uploaded
taskferry_cloudrun-0.2.0.tar.gz 11.1 kB Details

Built distribution (wheel)

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

Total release size: 23.8 kB

Release files / taskferry_cloudrun-0.2.0.tar.gz

Download URL taskferry_cloudrun-0.2.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3af8fa42a43a32264feae88e9145dddadd26de0e5f617c233e06788af0843fc
BLAKE2b-256 checksum
How to use checksums
aa53b93eb33b2a731616848dc4de4312ac7b139f5c51d2518c211a00a2b6025a
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.2.0-py3-none-any.whl

Download URL taskferry_cloudrun-0.2.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5552f0564643dd8c0e3a0757e4bace502d52b89d58c66a7903d92358a0733826
BLAKE2b-256 checksum
How to use checksums
3529f1a764e71fcbb2f0dd70f07285f66d02a0e883c57a4893829f3b9a81557e
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

0.3.0

2 release files

This release

0.2.0 This release

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