-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[dagster-airlift][jobs 4/n] Definitions.execute_job_in_process #29243
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
Conversation
b38fa41
to
c581bfc
Compare
a7caf6a
to
05fb3ae
Compare
c581bfc
to
c580897
Compare
05fb3ae
to
bbb6263
Compare
6595ca7
to
f695d66
Compare
run_config=run_config, | ||
), | ||
run_id=run_id, | ||
asset_selection=frozenset(asset_selection), |
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.
The line asset_selection=frozenset(asset_selection)
will raise a TypeError when asset_selection
is None, which is a valid input according to the function signature. Since both this method and core_execute_in_process
accept asset_selection
as an Optional parameter, this should be changed to:
asset_selection=frozenset(asset_selection) if asset_selection else None
This matches the pattern used in JobDefinition.get_subset
on line 743 and will properly handle the None case.
asset_selection=frozenset(asset_selection), | |
asset_selection=frozenset(asset_selection) if asset_selection else None, |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
ae1523b
to
86bdbc4
Compare
f695d66
to
55dd13b
Compare
86bdbc4
to
94984b0
Compare
55dd13b
to
16f8742
Compare
94984b0
to
5d3a0e4
Compare
16f8742
to
997cd2c
Compare
5d3a0e4
to
f1727c1
Compare
9a12662
to
62cf80a
Compare
f1727c1
to
b08c414
Compare
f3a8535
to
c7c9046
Compare
b08c414
to
48f6987
Compare
c7c9046
to
d6909d9
Compare
48f6987
to
11bbd68
Compare
d6909d9
to
b98c899
Compare
11bbd68
to
b2cd82e
Compare
b98c899
to
167e407
Compare
## Summary & Motivation This PR introduces a new monitoring job for dagstser-airlift that tracks Airflow runs as Dagster runs. The monitoring job polls the Airflow instance for activity and inserts new events and runs into the db. ## How I Tested These Changes - Added comprehensive unit tests for the monitoring job functionality - Live-tested with kitchen sink to ensure that runs were properly picked up.
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit ad2c505. |
Summary & Motivation
Adds a new internal execute_in_process method to Definitions class which contains full repository context. This ends up being really useful for the "monitoring job", which requires full repo context to build its mapping of items.
How I Tested These Changes
Additional execute_in_process test.