Skip to content

Conversation

@pankajastro
Copy link
Member

Add the deferrable param in
EmrContainerOperator/EmrStepSensor/EmrJobFlowSensor.
This will allow running Operator/Sensors in an async way
which means we only submit a job from the worker to run a job
then defer to the trigger for polling and wait for a job the job status
and the worker slot won't be occupied for the whole period of task execution.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Jun 20, 2023
@pankajastro
Copy link
Member Author

cc: @syedahsn

@pankajastro pankajastro marked this pull request as ready for review June 20, 2023 12:27
@pankajkoti pankajkoti requested a review from Lee-W June 20, 2023 12:35
Copy link
Contributor

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

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

Can you add docs about availability of deferrable mode for these operators?

@pankajastro pankajastro requested a review from Lee-W June 23, 2023 10:16
@pankajastro pankajastro requested review from ephraimbuddy and phanikumv and removed request for syedahsn June 26, 2023 08:10
Copy link
Contributor

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

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

rebase it from main and we should be good to go!

pankajastro and others added 10 commits June 27, 2023 14:47
Add the deferrable param in EmrContainerOperator/EmrStepSensor/EmrJobFlowSensor.
This will allow running Operator/Sensors in an async way
that means we only submit a job from the worker to run a job
then defer to the trigger for polling and wait for a job the job status
and the worker slot won't be occupied for the whole period of task execution.
Co-authored-by: Ephraim Anierobi <[email protected]>
@pankajastro pankajastro merged commit 06b5a1e into apache:main Jun 27, 2023
@pankajastro pankajastro deleted the add_emr_async_op branch June 27, 2023 10:27
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 27, 2023
* Add deferrable mode in EMR operator and sensor

Add the deferrable param in EmrContainerOperator/EmrStepSensor/EmrJobFlowSensor.
This will allow running Operator/Sensors in an async way
that means we only submit a job from the worker to run a job
then defer to the trigger for polling and wait for a job the job status
and the worker slot won't be occupied for the whole period of task execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants