All posts

The simplest way to make Cloud Run Dagster work like it should

You’ve got your data workflows humming in Dagster, and your team swears by Google Cloud Run for deployments. Then someone asks, “Can’t we just run Dagster on Cloud Run?” and you feel that quiet sense of dread. It sounds simple, yet the details decide whether the next deploy is clean or chaos. Dagster loves structure. It orchestrates data pipelines with intent, giving you lineage, retries, and observability. Cloud Run, on the other hand, thrives on stateless isolation and auto-scaling containers

Free White Paper

End-to-End Encryption + Sarbanes-Oxley (SOX) IT Controls: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

You’ve got your data workflows humming in Dagster, and your team swears by Google Cloud Run for deployments. Then someone asks, “Can’t we just run Dagster on Cloud Run?” and you feel that quiet sense of dread. It sounds simple, yet the details decide whether the next deploy is clean or chaos.

Dagster loves structure. It orchestrates data pipelines with intent, giving you lineage, retries, and observability. Cloud Run, on the other hand, thrives on stateless isolation and auto-scaling containers. Marry the two correctly, and you get ephemeral, fast, and auditable orchestration that never lingers longer than it should.

The integration logic is straightforward once you understand the boundary. Dagster’s daemon or sensor code can trigger Cloud Run jobs as isolated steps. Each job runs in its own secure container with tightly scoped permissions through Workload Identity Federation or short-lived tokens. Cloud Run handles compute, Dagster handles orchestration. You win both worlds: clean modular DAGs, and autoscaling execution with Google-grade networking.

How to connect them? Keep Dagster’s orchestration service persistent, either in Cloud Run with minimum instances or elsewhere such as GKE or ECS Fargate. Then delegate each “solid” execution (in Dagster terms) as a Cloud Run job call using authenticated HTTP requests or Pub/Sub events. When you design it this way, Dagster becomes the mind, and Cloud Run the muscle that executes transient workloads.

Best practices matter here.

Continue reading? Get the full guide.

End-to-End Encryption + Sarbanes-Oxley (SOX) IT Controls: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.
  • Lock down service accounts to the least privilege possible.
  • Rotate credentials automatically, preferably using identity-based authentication like OIDC.
  • Map Dagster job names to Cloud Run services clearly. Humans debugging at 2 a.m. will thank you.
  • Stream logs from Cloud Run into Cloud Logging and surface them in Dagster for unified visibility.

The result is delightful.

  • Pipelines scale from zero without manual provisioning.
  • Cold starts fade because you only pay when containers run.
  • Each execution stays isolated for security reviews and SOC 2 checks.
  • Failures are pinpointed with Cloud Run log correlation.
  • Approvals and re-deploys feel instant, because everything is code driven and stateless.

Developers love it because there’s less waiting and no creeping resource costs. Debug once, deploy anywhere. It restores velocity without begging DevOps for another VM. In modern teams, that is gold. Platforms like hoop.dev take this pattern even further, turning access rules and identity mapping into automatic guardrails so engineers move fast inside safe zones.

How do you run Dagster on Cloud Run efficiently?
Run Dagster itself on a small persistent instance and offload actual ops to Cloud Run jobs. Trigger those jobs through Dagster using service accounts or Pub/Sub, and centralize logging. That’s the pattern that keeps workflows elastic and maintainable.

AI copilots can slot into this model too. When they trigger tasks through your Dagster pipelines, Cloud Run ensures every run is isolated, auditable, and resource-bounded. That’s how automation stays controlled instead of becoming a compliance headache.

Done right, Cloud Run Dagster feels simple, almost boring, which is exactly how production infrastructure should feel. Security, speed, and consistency without drama.

See an Environment Agnostic Identity-Aware Proxy in action with hoop.dev. Deploy it, connect your identity provider, and watch it protect your endpoints everywhere—live in minutes.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts