zerodarkzone opened a new issue, #53591:
URL: https://github.com/apache/airflow/issues/53591
### Apache Airflow version
3.0.3
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
When using the TimeSensor operator with deferrable = True, it fails after
completion with the following error:
``` python
TypeError: TimeSensor.execute_complete() got an unexpected keyword argument
'event'
File
"/usr/local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
line 877 in run
File
"/usr/local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py",
line 1164 in _execute_task
File "/usr/local/lib/python3.12/site-packages/airflow/sdk/bases/sensor.py",
line 255 in resume_execution
File
"/usr/local/lib/python3.12/site-packages/airflow/sdk/bases/operator.py", line
1609 in resume_execution
```
### What you think should happen instead?
The operator should finish and continue the dag execution.
### How to reproduce
Create a TimeSensor with `deferrable=True`, it will fail after completion.
``` python
_sensor_wait = TimeSensor(
task_id="wait_for_2_25",
target_time=time(2, 25).replace(tzinfo=timezone("America/Bogota")),
deferrable=True,
)
```
### Operating System
Astronomer
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### Deployment details
I'm using astronomer runtime 3.0-5 with the kubernetes executor.
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]