Thanks Damon,

we restarted the server. When you say "replace the invoked module with
a no-op module" this will not remove tasks currently in the queue,
correct?

On a related note, could one write some code around
xdmp:request-cancel() to purge the queue?
In any case, I think it would be a useful addition to the api to be
able to better control the task server.

Many thanks for your answer,
Jakob.



On Tue, Oct 11, 2011 at 15:35, Damon Feldman
<[email protected]> wrote:
> Jakob,
>
> Yes, restarting the server will clear the task queue. Also, you can replace 
> the invoked module with a no-op module (xdmp:log("skipping queued task") or 
> similar) if no other code is calling it. The queue will then "drain" quickly.
>
> I don't believe there is a programmatic way to remove queued tasks.
>
> Yours,
> Damon
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Jakob Fix
> Sent: Tuesday, October 11, 2011 8:55 AM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] how to purge the task server queue?
>
> Hi, we have a long waiting list on our task server and would like to
> remove them programmatically. It doesn't look like there is such an
> option in the admin: api, or is there? Also, would restarting the
> server remove the waiting tasks from the queue?
>
> thanks in advance,
> Jakob.
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to