• Post Reply Bookmark Topic Watch Topic
  • New Topic

Controlling Scheduled Tasks  RSS feed

graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm in the process of creating an admin section to an web app that will use scheduled tasks to perform an operation at certain times during the day. The main portion is setup and working well, however, I was hoping to place abit of control management along with the tasks. Like, what tasks are currently scheduled, when were these tasks scheduled, last known attempt to run the task and the status of the last run. Basic stuff like that.

These threads are currently started within one portion of my web app. i.e., A command object is invoked and fires up the thread, however, I was thinking that it might be better that the command object look up the availability of a specific type of task and either create a new one of modify an existing one.

Is the ServerContext the correct place to do such things? If I were to create these objects and keep them in a hash would the command objects be able to cancel the threads if need be?

Thanks for any suggestions/pointers,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!