Returning timer job status from custom timer job

别来无恙 提交于 2019-12-24 11:53:57

问题


There is a timer job status page in Central Admin
/_admin/ServiceRunningJobs.aspx

How can I properly return the status for my custom timer job ?

The Execute() method of timer job returns void.


回答1:


It either fails (Exception) or succeeds (Method completes)




回答2:


SPJobDefinition.UpdateProgress



来源:https://stackoverflow.com/questions/4666101/returning-timer-job-status-from-custom-timer-job

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!