Feedback mechanism for background tasks
We use background tasks a lot, it would be useful to be able to not only see failures in the task list within the Railo administrator, but also to be able to send back status messages.
For example, if you had a batch process to send out emails, you could have it running in the background and then visit the Railo administrator to see it’s progress (e.g. "Sending email 500 of 30,000").
3 comments
-
Todd Rafferty
commented
@Daniel: I guess my point is, I don't see how the app server is going to give you the result of "(e.g. "Sending email 500 of 30,000")." when it doesn't know how many it is going to send because of whatever loop or to/cc/bcc addresses you're sending it to. Again, this should be built into your application. Case in point, you put all the recipients in the db, scheduled task comes along and does 100 at a time. The scheduled task is responsible for marking them as sent. Your app then counts how many is done vs. how many is left to do and you can report that to the user. So, I guess I still don't feel that Railo should be responsible for this.
-
Daniel Rosewarne
commented
Hi Todd,
The intention was that it would be built into the application, it would just be a place to log events for running tasks, to avoid having to build an event store and an administrative page to view task status.
I agree, it could be completely built into the app itself, but it would be good to be able to monitor running tasks and their status from within the Railo manager.
Cheers,
Dan -
Todd Rafferty
commented
In my opinion, this is something you should build into your application, not something the server should worry about.