karkraeg
karkraeg

Reputation: 465

eXistDB run xQuery in background?

Is there any way to call a xQuery Script stored in eXist which for instance uses transform:transform on a large number of files and let it run in the Background? Right now, I can call my script via the Browser and it will take several minutes - would be nice to have it run in the background. Is this possible?

---Edit

It seems that xQuery Tasks are always running in the background, there is no need to wait from them to finish when calling them via a Webinterface in eXist. So what I'm looking for is merely a way to forward to another url when a query is called.

Upvotes: 0

Views: 213

Answers (1)

duncdrum
duncdrum

Reputation: 733

Can you explain what you mean by background? If you call the script it will run. If running the script makes exist unresponsive you need to increase its memory. You can run multiple scripts, and you can schedule a CRON job to execute a query at specific intervals. You can also execute a script via the REST endpoint, in case you don't want to use a browser?

Upvotes: 0

Related Questions