You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/05 11:16:04 UTC

[GitHub] [airflow] sighingnow commented on pull request #17405: Add XCom.clear so it's hookable in custom XCom backend

sighingnow commented on pull request #17405:
URL: https://github.com/apache/airflow/pull/17405#issuecomment-986210786


   > @sighingnow @MatrixManAtYrService Wondering if you guys could help me understand:
   > 
   > When is the [`clear`](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/xcom/index.html#airflow.models.xcom.BaseXCom.clear) method called in the DAG process? How are we avoiding the case that we clear the data from the external database, but the tasks fails and has to rerun? If the task reruns, won't it need to query for the data again, but if we deleted it already, then it wont be there anymore.
   
   There's a command `airflow dags delete` to delete runs that belongs to dag.
   
   > 
   > Also what is the difference between [`delete`](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/xcom/index.html#airflow.models.xcom.BaseXCom.delete) and `clear`. When is `delete` called?
   
   I think `delete` could be used to delete a specfic run, and `clear` deletes all runs of a dag.
   
   > but if we deleted it already, then it wont be there anymore.
   
   I think you could assume the previous step will be triggered to generate (query from the underlying database) the data.


-- 
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