You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dolphinscheduler.apache.org by "xinguozhong@126.com" <xi...@126.com> on 2021/05/17 07:41:31 UTC

回复: 回复:小白请教:如何把process_instance_id和传递给shell脚本

I have some shell scripts  and I want to use DS to schedule them.
One shell script, one DS process_definition.
In order to count some data about the task_instance  ,   I want to acquire DS's process_instance_id  and DS's  task_instance_id in my own  shell script.



xinguozhong@126.com
 
发件人: CalvinKirs
发送时间: 2021-05-17 10:57
收件人: dev@dolphinscheduler.apache.org
主题: 回复:小白请教:如何把process_instance_id和传递给shell脚本
I don't quite understand the actual scene, can you describe it in detail. In my point, the business side should not care about the internal parameters of DS.
For better communication, please use English. Thx.
 
 
Best Wishes!
CalvinKirs
 
 
在2021年05月17日 09:58,759100907<75...@qq.com> 写道:
我也有这个需求,文档上没有找到这个占位符,打算自己在源码中加一个,其他人有解决方法吗?
 
 
------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <xinguozhong@126.com&gt;;
发送时间:&nbsp;2021年5月17日(星期一) 上午9:55
收件人:&nbsp;"dev"<dev@dolphinscheduler.apache.org&gt;;
 
主题:&nbsp;小白请教:如何把process_instance_id和传递给shell脚本
 
 
 
各位开发者好:
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 请教下:DS的 怎么把process_instance_id和task_instance_id传递给 真实的任务执行程序?&nbsp; 我想在自己的shell程序中能够获得得这几个id,
进行任务内部数据的统计使用。
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 我查到了三个&nbsp; 全局参数
&nbsp;&nbsp;&nbsp; ${system.biz.date}&nbsp;
&nbsp;&nbsp;&nbsp; ${system.biz.curdate}&nbsp;
&nbsp;&nbsp;&nbsp; ${system.datetime}
不知道有没有${process_instance_id},${task_instance_id}可以传递给shell脚本
 
 
 
xinguozhong@126.com