question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Asset Job - unable to launch backfill when there is required asset/resource config

See original GitHub issue

Dagster version

1.1.1

What’s the issue?

When attempting to launch a backfill for an asset job that has asset/resource config that is marked as required, the materialize all button opens the launchpad UI instead of the launch backfill UI

What did you expect to happen?

We expect this button to open the launch backfill UI instead of the launchpad UI.

Since 1.1.1, the Asset Job partition page’s launch backfill button has been replaced with a materialize all button which uses logic for launching runs for assets https://github.com/dagster-io/dagster/blob/release-1.1.2/js_modules/dagit/packages/core/src/partitions/AssetJobPartitionsView.tsx#L84

This logic contains two checks anyAssetsHaveRequiredConfig and anyResourcesHaveRequiredConfig which shows the launchpad UI if there is required asset/resource config, or shows the partition UI if there is no required asset/resource config. https://github.com/dagster-io/dagster/blob/release-1.1.2/js_modules/dagit/packages/core/src/assets/LaunchAssetExecutionButton.tsx#L351

This check made sense previously when this button was only used for Assets, because asset/resource config could not be provided by other means, however doesn’t make sense for asset jobs, which could have asset/resource config that is required, which is filled in via partitioned config.

How to reproduce?

  1. create an asset that has resource_defs with a config field that is marked as required, or a config_schema with a field marked as required.
  2. use this asset to create an asset job using define_asset_job
  3. launch the UI, go to the job, and then to the partitions tab
  4. press the materialize all button, and instead of the launch backfill UI, the launchpad UI is shown

Deployment type

Local

Deployment details

No response

Additional information

No response

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bengotowcommented, Dec 6, 2022

Hey folks! The fix for this merged in https://github.com/dagster-io/dagster/pull/10905. When a user-defined asset job has partitions, we always assume that the config will be provided (via job-level PartitionedConfig) and a backfill is possible (essentially the same as the old pre-1.1.0 behavior).

This changes the button to show the partition range picker – if you want to customize config and launch a single partition, you can hold shift when clicking Materialize.

Thanks for your patience @xWaita!

0reactions
sryzacommented, Dec 6, 2022

Got it - that makes sense @xWaita .

@bengotow is working on this, and a fix will be included in Thursday’s release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asset Job - unable to launch backfill when there is ... - GitHub
Asset Job - unable to launch backfill when there is required asset/resource config · Run details · Usage · Workflow file.
Read more >
gcloud dataplex assets add-iam-policy-binding | Google Cloud CLI ...
Got it. NAME. gcloud dataplex assets add-iam-policy-binding - adds IAM policy binding to a Dataplex asset resource. SYNOPSIS.
Read more >
County of Sonoma Fiscal Year 2022-23 Recommended Budget
new funding is needed, it may be through new revenue sources, ... people have been leaving their jobs since the start of the...
Read more >
2018 Budget Profiles Livable and Supportive Community
required to serve and execute all processes, writs, precepts, and orders. ... of appearing at their next court date when setting bond.
Read more >
Oregon Department of Human Services - WAYS AND MEANS ...
Some programs require participation in employment services or job training to help them move to supporting themselves and their families.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found