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

Adding support for multiple task-ids in the external task sensor #17339

Merged
merged 3 commits into from
Aug 19, 2021

Conversation

sreenath-kamath
Copy link
Contributor

@sreenath-kamath sreenath-kamath commented Jul 30, 2021

Adding support for multiple task-ids in the external task sensor

closes: #16705

@boring-cyborg boring-cyborg bot added the area:core-operators Operators, Sensors and hooks within Core Airflow label Jul 30, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Jul 30, 2021

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, mypy and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@sreenath-kamath sreenath-kamath changed the title Adding support for multiple task-ids in thee external task sensor Adding support for multiple task-ids in the external task sensor Jul 30, 2021
@sreenath-kamath
Copy link
Contributor Author

@potiuk can you please help assign reviewers for the PR

@@ -149,7 +167,10 @@ def poke(self, context, session=None):
serialized_dttm_filter = ','.join(dt.isoformat() for dt in dttm_filter)

self.log.info(
'Poking for %s.%s on %s ... ', self.external_dag_id, self.external_task_id, serialized_dttm_filter
'Poking for %s.%s on %s ... ',
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I think this will look rather weird when there is one task (Poking for dag.[task1] on "filter"). Maybe "Poking for tasks: ['task1' ,'task2'] in dag: dag".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup makes sense, Have modified the logging statement and added a test case to validate the same.

@sreenath-kamath
Copy link
Contributor Author

@potiuk Have made the recommended changes, Can you take another pass at it ?

@potiuk potiuk merged commit 6040125 into apache:main Aug 19, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Aug 19, 2021

Awesome work, congrats on your first merged pull request!

@potiuk
Copy link
Member

potiuk commented Aug 19, 2021

Sorry it took so long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core-operators Operators, Sensors and hooks within Core Airflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to add multiple task_ids in the ExternalTaskSensor
2 participants