dataform icon indicating copy to clipboard operation
dataform copied to clipboard

Execute workflows with batch priority.

Open nicolasrodriguez-mb opened this issue 4 months ago • 7 comments

Feature request:

It will be nice to execute workflows indicating batch priority. It should work as described here:

https://discuss.google.dev/t/is-it-possible-to-set-priority-of-dataform-execution-to-batch/155123/2?u=nicolas-mb

nicolasrodriguez-mb avatar Aug 18 '25 13:08 nicolasrodriguez-mb

Do you want to have this ability in the GCP Dataform or in the Dataform CLI?

kolina avatar Aug 18 '25 17:08 kolina

it will be fabulous to achieve this.

Edit dataform.json Configuration:

Open your dataform.json file and add or modify the defaultConfig section:

{ "defaultConfig": { "bigquery": { "priority": "BATCH" } } } This sets BATCH as the default priority for all BigQuery operations in your Dataform project.

  1. Configure in config Block (Granular Control):

For specific SQLX scripts, you can set the priority directly in the config block:

config { type: "table", bigquery: { priority: "BATCH" } }

-- Your SQL code here This allows you to control which scripts use BATCH priority.

nicolasrodriguez-mb avatar Aug 18 '25 20:08 nicolasrodriguez-mb

Sure, but let me repeat my question: how do you run Dataform DAGs in production? Do you use Managed Dataform in GCP or you manage Dataform yourself and use the Dataform CLI?

kolina avatar Aug 19 '25 08:08 kolina

I use GCP

nicolasrodriguez-mb avatar Aug 19 '25 22:08 nicolasrodriguez-mb

We're working on the support of configuring batch priority in the GCP Dataform at the moment. Initially it'll be supported as configuration when starting a new workflow invocation (as follow up we may add default configuration in dataform.json / workflow_settings.yaml)

kolina avatar Aug 21 '25 14:08 kolina

As a follow up, in GCP in the workflows, now has an option to unmark and leave the execution with batch priority. Pretty cool

nicolasrodriguez-mb avatar Oct 10 '25 12:10 nicolasrodriguez-mb

I believe the documentation in Datafom of GCP should highlight this.

nicolasrodriguez-mb avatar Oct 10 '25 12:10 nicolasrodriguez-mb