重试气流期间如何保持值 [英] How to persist a value during airflow retry

查看:128
本文介绍了重试气流期间如何保持值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次dag触发任务时,我都想生成一个值并在重试期间保留该值(如果任务由于任何原因而无法运行)

Everytime a dag triggers a task I would like to generate a value and keep the value during retry (if the task fails to run for any reason)

我尝试在dag中声明一个变量(基本上将当前时间设置为该变量) 当任务失败并重试时,它会再次将变量设置为最新时间

I try to declare a variable inside the dag (basically set current time to the variable) When the task fails and it retries, it set the variable with latest time again

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆