-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[bugfix] Make ScheduleDefinition.with_job pass tags correctly #26042
Conversation
b5d3172
to
e7c1e7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple small comment things, but the change seems fine!
@@ -559,7 +559,7 @@ def with_updated_job(self, new_job: ExecutableDefinition) -> "ScheduleDefinition | |||
required_resource_keys=self._raw_required_resource_keys, | |||
run_config=None, # run_config, tags, should_execute encapsulated in execution_fn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this comment incorrect then? maybe it's meant to be tags_fn
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -559,7 +559,7 @@ def with_updated_job(self, new_job: ExecutableDefinition) -> "ScheduleDefinition | |||
required_resource_keys=self._raw_required_resource_keys, | |||
run_config=None, # run_config, tags, should_execute encapsulated in execution_fn | |||
run_config_fn=None, | |||
tags=None, | |||
tags=self.tags, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR, but while you're here, i noticed that the docstring at line 546 uses the wrong param name
e7c1e7f
to
86bbb1f
Compare
Linear: https://linear.app/dagster-labs/issue/BUILD-435/fix-scheduledefinitionwith-updated-job ## Summary & Motivation Make `ScheduleDefinition.with_updated_job` correctly copy the `tags` on the `ScheduleDefinition`. ## How I Tested These Changes New unit test.
…r-io#26042) Linear: https://linear.app/dagster-labs/issue/BUILD-435/fix-scheduledefinitionwith-updated-job ## Summary & Motivation Make `ScheduleDefinition.with_updated_job` correctly copy the `tags` on the `ScheduleDefinition`. ## How I Tested These Changes New unit test.
Linear: https://linear.app/dagster-labs/issue/BUILD-435/fix-scheduledefinitionwith-updated-job
Summary & Motivation
Make
ScheduleDefinition.with_updated_job
correctly copy thetags
on theScheduleDefinition
.How I Tested These Changes
New unit test.