Skip to content

Add FreshnessStateChange event type #29568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 5, 2025

Conversation

anuthebananu
Copy link
Contributor

@anuthebananu anuthebananu commented Apr 24, 2025

Summary & Motivation

Adds a new event type - FreshnessStateChange. This event will be emitted when the freshness state of an asset changes.

Also adds a new _report_runless_asset_event method on DagsterInstance. The new method will allow cloud code to emit the new FreshnessStateChange event without polluting the public report_runless_asset_event method.

How I Tested These Changes

tests in internal < PR link coming soon >

Changelog

Insert changelog entry or delete this section.

@anuthebananu anuthebananu changed the title add FreshnessStateChange event Add FreshnessStateChange event Apr 24, 2025
Copy link
Contributor Author

anuthebananu commented Apr 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@anuthebananu anuthebananu changed the title Add FreshnessStateChange event Add FreshnessStateChange event type Apr 24, 2025
@anuthebananu anuthebananu marked this pull request as ready for review April 24, 2025 15:35
@anuthebananu anuthebananu force-pushed the anurag/freshness-na-state branch from 8922245 to d14e093 Compare April 24, 2025 16:44
@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from b7ee9ef to 9b7f8b0 Compare April 24, 2025 16:44
@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from 9b7f8b0 to 3e7009f Compare May 1, 2025 20:47
@anuthebananu anuthebananu force-pushed the anurag/freshness-na-state branch from d14e093 to 113cfad Compare May 1, 2025 20:47
@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from 3e7009f to 35264ea Compare May 1, 2025 20:51
@anuthebananu anuthebananu requested a review from jamiedemaria May 1, 2025 20:56
@anuthebananu anuthebananu changed the base branch from anurag/freshness-na-state to graphite-base/29568 May 1, 2025 21:02
@anuthebananu anuthebananu force-pushed the graphite-base/29568 branch from 113cfad to cea3b6e Compare May 1, 2025 21:25
@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from 35264ea to 33fca9f Compare May 1, 2025 21:25
@anuthebananu anuthebananu changed the base branch from graphite-base/29568 to anurag/freshness-na-state May 1, 2025 21:26
@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from 33fca9f to a014e75 Compare May 2, 2025 21:12
@anuthebananu anuthebananu force-pushed the anurag/freshness-na-state branch from cea3b6e to ba968df Compare May 2, 2025 21:12
Copy link
Contributor

@jamiedemaria jamiedemaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chatted about this offline - let's make a private method for reporting runless asset events that accepts the freshness class (the public method can just call the private one and have more restrictive allowed parameter types). other than that this looks good to me!

@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from f8bea01 to e1b5e6f Compare May 2, 2025 21:44
@anuthebananu anuthebananu requested a review from jamiedemaria May 2, 2025 22:48
Copy link
Contributor Author

few errant test failures in the last build, nothing related to this PR: https://buildkite.com/dagster/dagster-dagster/builds/121553

Copy link
Contributor

@jamiedemaria jamiedemaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - one small place to remove some commented code

@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch 2 times, most recently from 5df7d45 to 88ecb5e Compare May 5, 2025 13:37
@anuthebananu anuthebananu force-pushed the anurag/freshness-na-state branch from ba968df to 507b7ba Compare May 5, 2025 13:37
Copy link

github-actions bot commented May 5, 2025

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-2919jd3b8-elementl.vercel.app
https://anurag-new-freshness-state-change-event.core-storybook.dagster-docs.io

Built with commit dd19365.
This pull request is being automatically deployed with vercel-action

Copy link
Contributor Author

anuthebananu commented May 5, 2025

Merge activity

  • May 5, 2:41 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • May 5, 2:44 PM EDT: Graphite rebased this pull request as part of a merge.
  • May 5, 2:44 PM EDT: @anuthebananu merged this pull request with Graphite.

@anuthebananu anuthebananu changed the base branch from anurag/freshness-na-state to graphite-base/29568 May 5, 2025 18:41
@anuthebananu anuthebananu changed the base branch from graphite-base/29568 to master May 5, 2025 18:42
@anuthebananu anuthebananu force-pushed the anurag/new-freshness-state-change-event branch from b51a161 to dd19365 Compare May 5, 2025 18:43
@anuthebananu anuthebananu merged commit 42016d0 into master May 5, 2025
4 of 5 checks passed
@anuthebananu anuthebananu deleted the anurag/new-freshness-state-change-event branch May 5, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants