-
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
Make AutomationCondition evaluate optionally async #25238
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This stack of pull requests is managed by Graphite. Learn more about stacking. |
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 11, 2024 21:06
485dccf
to
89abd65
Compare
OwenKephart
requested changes
Oct 11, 2024
...ules/dagster/dagster/_core/definitions/declarative_automation/operators/boolean_operators.py
Outdated
Show resolved
Hide resolved
...ules/dagster/dagster/_core/definitions/declarative_automation/operators/boolean_operators.py
Outdated
Show resolved
Hide resolved
...ules/dagster/dagster/_core/definitions/declarative_automation/operators/boolean_operators.py
Outdated
Show resolved
Hide resolved
...odules/dagster/dagster/_core/definitions/declarative_automation/operators/check_operators.py
Outdated
Show resolved
Hide resolved
...odules/dagster/dagster/_core/definitions/declarative_automation/operators/check_operators.py
Outdated
Show resolved
Hide resolved
OwenKephart
approved these changes
Oct 11, 2024
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.
note comment, otherwise this is looking great so far!
...modules/dagster/dagster/_core/definitions/declarative_automation/operators/since_operator.py
Outdated
Show resolved
Hide resolved
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 14, 2024 19:06
819f593
to
ebe8594
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 14, 2024 19:06
26284dd
to
6a70785
Compare
This was referenced Oct 14, 2024
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
2 times, most recently
from
October 15, 2024 22:35
34a2997
to
73818b7
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 15, 2024 22:42
3a3fce1
to
4ed4f5e
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 15, 2024 22:42
73818b7
to
d56c073
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 17, 2024 19:00
4ed4f5e
to
5072f1c
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 17, 2024 19:01
d56c073
to
def9fe2
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 17, 2024 20:36
5072f1c
to
c184505
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
2 times, most recently
from
October 18, 2024 17:59
4a164ec
to
7fc9c05
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 18, 2024 22:49
110b6da
to
f929335
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 18, 2024 22:49
7fc9c05
to
0f48def
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 21, 2024 16:41
ce5bef1
to
c63f9ec
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
2 times, most recently
from
October 21, 2024 19:09
7bf9c80
to
81cf176
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 21, 2024 19:52
c63f9ec
to
beea1b4
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 21, 2024 19:52
81cf176
to
30253d1
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 21, 2024 22:00
beea1b4
to
de5672e
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 21, 2024 22:00
30253d1
to
8bdb5e8
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 22, 2024 00:45
de5672e
to
7469355
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 22, 2024 00:45
8bdb5e8
to
0d4e8b4
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 22, 2024 19:39
2e2bbcd
to
047f4eb
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 22, 2024 19:39
0d4e8b4
to
c957043
Compare
OwenKephart
approved these changes
Oct 22, 2024
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 22, 2024 20:24
047f4eb
to
c0e6562
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 22, 2024 20:24
c957043
to
346ee2b
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 22, 2024 20:30
c0e6562
to
57bebf0
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 22, 2024 20:31
346ee2b
to
b115f84
Compare
briantu
force-pushed
the
briantu/evaluate-automation-condition-async
branch
from
October 22, 2024 21:13
57bebf0
to
1c5c461
Compare
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 22, 2024 21:13
b115f84
to
7e354ee
Compare
briantu
changed the base branch from
briantu/evaluate-automation-condition-async
to
graphite-base/25238
October 22, 2024 22:13
briantu
force-pushed
the
briantu/make-da-evaluation-optionally-async
branch
from
October 22, 2024 22:17
7e354ee
to
a528dbc
Compare
Grzyblon
pushed a commit
to Grzyblon/dagster
that referenced
this pull request
Oct 26, 2024
## Summary & Motivation We now want to make each the `AutomationCondition.evaluate` function optionally async. This is because we still want to keep it non async if users want to make their own automation conditions. To handle this, added a wrapper async evaluate function on `AutomationContext` that checks if the evaluate function is async or not. ## How I Tested These Changes Existing tests should pass
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary & Motivation
We now want to make each the
AutomationCondition.evaluate
function optionally async. This is because we still want to keep it non async if users want to make their own automation conditions. To handle this, added a wrapper async evaluate function onAutomationContext
that checks if the evaluate function is async or not.How I Tested These Changes
Existing tests should pass