jieguangzhou commented on code in PR #13194:
URL:
https://github.com/apache/dolphinscheduler/pull/13194#discussion_r1049738317
##########
docs/docs/zh/faq.md:
##########
@@ -720,4 +720,18 @@ A:在 3.0.0-alpha 版本之后,Python gateway server 集成到 api server
---
+## Q: 缓存执行时怎么判断任务已经存在缓存过的任务,即如何判断一个任务可以使用另外一个任务的运行结果?
+
+A: 对于标识为`缓存执行`的任务, 当任务启动时会生成一个缓存key, 该key由以下字段组合哈希得到:
+
+- 任务定义:任务实例对应的任务定义的id
+- 任务的版本:任务实例对应的任务定义的版本
+- 任务输入的参数:包括上游节点和全局参数传入的参数中,被任务定义的参数列表所引用和任务定义中使用`${}`引用的参数
+
+当缓存标识的任务运行时,会查找数据库中是否用相同缓存key的数据,
+- 若有则复制该任务实例并进行相应数据的更新
+- 若无,则任务照常运行,并在任务完成时将任务实例的数据存入缓存
+
+若不需要缓存时,可以在工作流实例中右键运行清除缓存,则会清楚该版本下当前输入的参数的缓存数据。
Review Comment:
Thanks, I have fixed it
--
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]