TWS 是 Tivoli 工作负载调度程序。
我已经安排了一项工作,并使其每 10 分钟重复一次。我将其放入运行周期为每日的作业流中。
现在,该作业第一天每十分钟运行一次,第二天运行两次,依此类推。
在 TWS 中安排一项作业每天运行多次的正确方法是什么?
这个职位定义有什么问题吗:
Workstation Job Stream Name Valid From Updated On Locked By
---------------- ---------------- ---------- ---------- ----------------
VMWSOAAPP01-TST PDSSITRNS_INTG_H - 01/17/2012 -
SCHEDULE MACHINE01-TST#JOBSTREAM
DESCRIPTION "SomeTransfer.sh param1"
ON RUNCYCLE RC1 DESCRIPTION "Daily every hour" "FREQ=DAILY;INTERVAL=1"
KEYSCHED
:
MACHINE01-TST#JOBNAME
SCRIPTNAME "/shared/app/app2/fds/bin/TWS/SomeTransfer.sh param1"
STREAMLOGON auser
TASKTYPE UNIX
RECOVERY STOP
AT 0645 UNTIL 0545 +1 DAYS
EVERY 0010
KEYJOB
END
答案1
如果您使用TWS/d,
您将自己的工作添加到工作流中。
右击工作
选择属性
选择时间限制
选择重复范围(从 hh:mm 到 hh:mm 以及频率)
然后你还必须定义作业应该在一周/一月/一年中的哪几天运行
点击“运行循环”图标
点击“添加运行周期”图标
选择作业应运行的日期
保存作业流
答案2
我也有类似的需求。这对我有用:
#Start at 6am, every 5 minutes, don't run after 5am tomorrow
#But make sure you don't start the next instance of this job
#before the previous instance finishes. In case the job might
#take 10 minutes to run some time, and I don't want the next
#instance to start before the previous one ends..
SCHEDULE XLDETL01#EITST_EVERY_J
DESCRIPTION "Schedule a job every 5 minutes, but job takes 10 minutes"
ON RUNCYCLE DAILY "FREQ=DAILY;INTERVAL=1"
CARRYFORWARD
MATCHING PREVIOUS
FOLLOWS XLDETL01#EITST_EVERY_J.@
:
XLDETL01#DMEITST_TSTG0001_DUMMY_10
AT 0600 EVERY 0005 UNTIL 0500 ONUNTIL CANC
FOLLOWS XLDETL01#EITST_EVERY_J.DMEITST_TSTG0001_DUMMY_10 PREVIOUS
END