Gert's ml-queue does something similar. Its stores the query in the database 
and calls xdmp:eval on the query. And this can be done from a scheduled task on 
every node.

Yes that should do the trick.  It should be easy to write your own as well.   
Note that this is no different than deploying the script to the modules DB and 
running directly.  Its 2 operations, a DB insert then a form of invoke/spawn.  
It can be done easily in QC as a one-off shot.
first
 xdmp:document-insert() then
admin:group-one-time-scheduled-task()

https://docs.marklogic.com/admin:group-one-time-scheduled-task

If what you insert is the full task then you don't need anything else.
If what you insert is a fragment to be eval'd then you need to first insert the 
runner program.

Same functionality is available via REST and XCC so you can script it if you 
want.
https://docs.marklogic.com/REST/POST/manage/v2/tasks





_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to