$xwiki API have an "sync" equivalent command (with groovy)?
or "sleep"?
My scheduled job generate some crash of tomcat:
01-Feb-2017 23:16:40.771 SEVERE [http-nio-8080-ClientPoller-0]
org.apache.tomcat.util.net.NioEndpoint$Poller.run
java.lang.OutOfMemoryError: Java heap space
Thxs.
--------------------------------------------
En date de : Mer 1.2.17, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
Objet: timeout in job scheduler?
À: "XWiki Users" <users(a)xwiki.org>
Date: Mercredi 1 février 2017, 16h17
Hello,
I created a job scheduled in scheduler, but sometime my job
seem to be failed sometime.
In my groovy job I add some logging system: some text sent
to a xwiki page+save but didn't find interesting things.
Of course I have some loops (I things) in my script (to list
groups member):
Members =
xwiki.rightsmanager.getAllMembersNamesForGroup("${GroupName}")
//extrait les users du groupe
Members.each {
MyMember =
xwiki.getDocument(it)
I wonder, Is there a timeout associated to the script that
runs and is there feedback in the event of an error (or a
way to activate logs for job scheduled)?
Thxs
Pascal BASTIEN