简体   繁体   中英

Does Airflow clear Tasks remove data from the database also?

We have a use case where we have to populate fresh data in our DB. There is already old data present from the successful DAG run in our DB . Now we need to delete the old data and re run the task. Airflow already provides a command to clear selection.

airflow clear -dx occupancy_reports.* -t building -s 2022-04-01 -e 2022-04-30

Will running this also delete the data from the Database and then populate fresh data ?

I guess you meant : airflow **tasks** clear ...

It is only clear the set of task instance, as if they never ran (it is not rollback)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM