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

ExternalTaskSensorAsync to support poke_interval #823

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

rajaths010494
Copy link
Contributor

I've recently started onboarding as the astronomer provider async sensors, I'm really appreciative you've made these available publicly!

One thing I noticed is that the FileSensorAsync supports poke_interval but the ExternalTaskSensorAsync does not and runs as a fixed 5 seconds. While this isn't an issue at the moment as we only run a few external task sensors as we scale up I wouldn't want 100s running every 5 seconds.

I notice that both DagStateTrigger and TaskStateTrigger support poll_interval.

closes #817

@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Base: 98.51% // Head: 98.51% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (a1285de) compared to base (379d4cc).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #823   +/-   ##
=======================================
  Coverage   98.51%   98.51%           
=======================================
  Files          87       87           
  Lines        4777     4780    +3     
=======================================
+ Hits         4706     4709    +3     
  Misses         71       71           
Impacted Files Coverage Δ
astronomer/providers/core/sensors/external_task.py 95.55% <100.00%> (+0.31%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rajaths010494 rajaths010494 marked this pull request as ready for review December 20, 2022 13:45
@rajaths010494 rajaths010494 merged commit a434ffb into main Dec 21, 2022
@rajaths010494 rajaths010494 deleted the add_poke_interval branch December 21, 2022 08:30
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.

ExternalTaskSensorAsync should support poke_interval
3 participants