You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing a non-mapped task with task instance note and task reschedule to a mapped task crashes scheduler when the task is cleared for rerun. Related commit where a similar fix was done.
Fix Scheduler crash when clear a previous run of a normal task that is now a mapped task (#29645)
The fix was to clear the db references of the taskinstances in XCom, RenderedTaskInstanceFields
and TaskFail. That way, we are able to run the mapped tasks
What you think should happen instead
No response
How to reproduce
Create below dag file with BashOperator non-mapped.
Schedule a dag run and wait for it to finish.
Add a task instance note to bash operator.
Change t1 to t1 = BashOperator.partial(task_id="bash").expand(bash_command=command) and return ["echo hello"] from get_command.
Restart the scheduler and clear the task.
scheduler crashes on trying to use map_index though foreign key reference exists to task instance note and task reschedule.
Apache Airflow version
main (development)
What happened
Changing a non-mapped task with task instance note and task reschedule to a mapped task crashes scheduler when the task is cleared for rerun. Related commit where a similar fix was done.
commit a770edf
Author: Ephraim Anierobi [email protected]
Date: Mon Feb 20 20:45:25 2023 +0100
What you think should happen instead
No response
How to reproduce
t1 = BashOperator.partial(task_id="bash").expand(bash_command=command)
and return["echo hello"]
from get_command.Operating System
Ubuntu
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: