使用恢复系统创建调度程序 [英] Creating scheduler with recovery system

查看:66
本文介绍了使用恢复系统创建调度程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须要有许多调度程序,它们每天都在工作,但是我希望如果执行时遇到一些问题,例如执行或网络问题,那么我会自动恢复由它自动完成的remanig作业.知道请给我妈或给我一些逻辑.
谢谢

I have to many scheduler they work in daily bases but i want that if some problem come in execution like execption or network problem then I automaticly recover the remanig job automatically done by it.so whereto start and how to do i do not know Please gide ma or give me some logic.
Thanks

推荐答案

您最好的选择是维护某种进度文件(我可能会使用XML文件).

当作业即将开始时,将作业标识信息放入文件中,当作业成功完成时,删除该信息.如果作业失败,则可以根据文件中的信息重新启动它.
Your best bet is to maintain some sort of progress file (I would probably use a XML file).

When the job is about to start, put the job identifying info into the file, and when the job is successfully completed, remove the info. If the job fails, you can restart it based on the info in the file.


这篇关于使用恢复系统创建调度程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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