hanxdatadog commented on PR #68916:
URL: https://github.com/apache/airflow/pull/68916#issuecomment-4814644253

   @shahar1 Updated to mock instead. The DB access isn't from a Celery backend 
— it's from Airflow's `@action_cli` decorator, which calls 
`cli_action_loggers.on_pre_execution()` to log the CLI invocation to the 
Airflow metadata DB before `worker()` even starts. We now mock that specific 
call at the class level.
   
   If you'd prefer we follow the `@pytest.mark.backend("mysql", "postgres")` 
pattern used by the other worker test classes in this file, happy to switch.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to