cfadmin

How do I determine if a scheduled task was ran automatically or ran in a browser?

旧巷老猫 提交于 2020-01-03 03:24:07
问题 I am running some code as a scheduled task, setup in CF Administrator. Is there a way to tell in the code that the code ran as a scheduled task, whether it was ran by clicking the run icon in the CF Administrator scheduled task area, or whether it was called directly in a browser? Adding additional variables will not work? 回答1: From the test link in the CF admin If you're asking if you can identify the difference between a scheduled task being run manually by clicking the test link in the

How to get list of scheduled tasks and last run results in ColdFusion?

六月ゝ 毕业季﹏ 提交于 2019-12-03 06:57:58
问题 We're trying to build a dashboard for our cron jobs ---- CF, Java, SQLServer, etc. so that we can see when things were run last, what the result was, and when they're scheduled to run next. Is there a way with the CFAdmin API or some undocumented <cfschedule> trick to get a list of: What tasks are scheduled? What the last run time was? Did it succeed? When is it scheduled to run again? We're currently on CF8, but will be upgrading to CF9 within a few weeks. 回答1: I did a little research into