You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2025/01/25 17:10:22 UTC

[PR] Remove email configs, operator and callbacks [airflow]

hussein-awala opened a new pull request, #46041:
URL: https://github.com/apache/airflow/pull/46041

   This PR:
   - removes the ability to use `email_on_retry` and `email_on_failure` to notify the users by email in favor of the [SMTP notifier](https://airflow.apache.org/docs/apache-airflow-providers-smtp/stable/notifications/smtp_notifier_howto_guide.html)
   - removes `EmailOperator` from `airflow.operators.email` in favor of `airflow.providers.smtp.operators.smtp.EmailOperator`
   - cleans their usage and remove SMTP section from Airflow configuration


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on code in PR #46041:
URL: https://github.com/apache/airflow/pull/46041#discussion_r1929785862


##########
airflow/example_dags/example_dag_decorator.py:
##########


Review Comment:
   I don't think we should do that. We should keep pre-installed to the minimum necessary.
   Probably raise this as one of the items in the lazy consensus
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "hussein-awala (via GitHub)" <gi...@apache.org>.
hussein-awala commented on code in PR #46041:
URL: https://github.com/apache/airflow/pull/46041#discussion_r1929578245


##########
tests/api_connexion/endpoints/test_config_endpoint.py:
##########


Review Comment:
   There is something strange with `mock_as_dict`, I'll check later



##########
airflow/example_dags/example_dag_decorator.py:
##########


Review Comment:
   ```
         - id: check-no-providers-in-core-examples
           language: pygrep
           name: No providers imports in core example DAGs
           description: The core example DAGs have no dependencies other than standard provider or core Airflow
           entry: "^\\s*from airflow\\.providers.(?!standard.)"
           pass_filenames: true
           files: ^airflow/example_dags/.*\.py$
   ```
   What about pre-installed providers? if we really want to keep the rule as it is, then I will need to update the example.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2775726507

   > Do we still want to do this? Happy to help if so.
   
   Yes. we need to sort this one out before RC1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2614038097

   We need also to remove the email part of airflow.cfg
   https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#email


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2692806121

   I merged https://github.com/apache/airflow/pull/47146
   @hussein-awala what is left to be completed on this PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2968557812

   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "zachliu (via GitHub)" <gi...@apache.org>.
zachliu commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-3286461815

   > We need also to remove the email and smtp part of airflow.cfg
   
   hooray! this surely simplifies things a lot!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2834023175

   We never did anything, and now 3.0 is out…
   
   What do we do next?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2755897581

   Do we still want to do this? Happy to help if so.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2834083526

   > We never did anything, and now 3.0 is out…
   > 
   > What do we do next?
   
   Move the email util from airflow-core to smtp provider with airflow4 deprecation warning.
   Deprecate email configs from core in favor smtp configs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on PR #46041:
URL: https://github.com/apache/airflow/pull/46041#issuecomment-2834413311

   We actually already made some changes and deprecated some configs during task sdk implementation. I think this needs to start from scratch. I’m going to do some of the config changes to catch up with task sdk changes first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove email configs, operator and callbacks [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #46041: Remove email configs, operator and callbacks
URL: https://github.com/apache/airflow/pull/46041


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org