Skip to content
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

store backfill logs using instigation logger #22003

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

jamiedemaria
Copy link
Contributor

@jamiedemaria jamiedemaria commented May 21, 2024

Summary & Motivation

stores backfill logs using the InstigationLogger. gated on an instance method that we can override to control roll out.

related internal pr https://github.com/dagster-io/internal/pull/9879

How I Tested These Changes

Copy link
Contributor Author

jamiedemaria commented May 21, 2024

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

Join @jamiedemaria and the rest of your teammates on Graphite Graphite

if os.getenv("STORE_BACKFILL_LOGS", None):
evaluation_time = pendulum.now("UTC")
log_key = ["backfill", backfill_id, evaluation_time.strftime("%Y%m%d_%H%M%S")]
with InstigationLogger(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the InstigationLogger always uses the dagster logger, whereas the backfill daemon uses the backfill-daemon-logger

super().__init__(name="dagster", level=coerce_valid_log_level(level))

likely need to make the name of the logger a parameter to instigation logger or something

@jamiedemaria jamiedemaria marked this pull request as ready for review May 23, 2024 21:06
@jamiedemaria
Copy link
Contributor Author

@alangenfeld @prha marking this PR and some related ones as ready for review to get them into review queues. Similar deal as with the other prototype PRs, these aren't actually ready for merging, I just want to start getting feedback on this direction and figure out what problems exist that we need to address

Copy link
Member

@alangenfeld alangenfeld left a comment

Choose a reason for hiding this comment

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

this looks good to me

@prha
Copy link
Member

prha commented May 28, 2024

Same, I think this looks pretty clean.

@jamiedemaria jamiedemaria changed the title [prototype] store backfill logs using instigation logger store backfill logs using instigation logger May 29, 2024
@jamiedemaria jamiedemaria force-pushed the jamie/store-backfill-logs branch 4 times, most recently from 96a0354 to 25e5fec Compare June 4, 2024 20:22
@jamiedemaria jamiedemaria merged commit d3559d7 into master Jun 5, 2024
1 check passed
@jamiedemaria jamiedemaria deleted the jamie/store-backfill-logs branch June 5, 2024 18:26
danielgafni pushed a commit to danielgafni/dagster that referenced this pull request Jun 18, 2024
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.

None yet

3 participants