[英]what will be the query for check completion of workflow?
I have to cheack the status of workflow weather that workflow completed within scheduled time or not in sql query format.我必须以 sql 查询格式检查工作流天气的状态,工作流是否在预定时间内完成。 And also send an email of workflow status like 'completed within time ' or not 'completed within time'.
并且还发送工作流状态的 email,例如“在时间内完成”或“未在时间内完成”。 So, please help me out
所以,请帮帮我
You can do it either using option1 or option 2.您可以使用选项 1 或选项 2 来完成。
SELECT WORKFLOW_NAME,(END_TIME-START_TIME)*24*60*60 diff_seconds
FROM
REP_WFLOW_RUN
WHERE WORKFLOW_NAME='myWorkflow'
GetWorkflowDetails
to check status, start and end time for a workflow.GetWorkflowDetails
检查工作流的状态、开始和结束时间。pmcmd GetWorkflowDetails -sv service -d domain -f folder myWorkflow
You can then grep start and end time from there, compare them with benchmark values.然后,您可以从那里开始和结束时间 grep,将它们与基准值进行比较。 The problem is the format etc. You need little bit scripting here.
问题是格式等。你需要一点点脚本在这里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.