From: Andrzej J. T. <an...@ch...> - 2010-02-03 16:10:07
|
Thomas: > BTW, is there a way to reduce the number remaining calls for > *schedule-xquery-periodic-job* in run time? > Use case: I need to process a dataset running periodically a XQuery > function that process a chunk of that data. I expect to have 5000 calls > but the data set is smaller this time and I need to cancel it after the > 50th call. Can I do this? If not, I hope we can then extend > *schedule-xquery-periodic-job* function to cancel the job if the > scheduled function returns false(). The easiest way to do that might be to just trigger the first call....and have each call chain to another call (that is, fire another scheduled job to run immediately), if there is data left to process. That way the calls will just keep being initiated until all the data is consumed and processed. -- Andrzej Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com |