Everything in XWiki is based on JobExecutor now so I can assure you it does not wait. Maybe your job is doing something slow in initialize. On Thu, Nov 20, 2014 at 10:24 AM, Stefan Bernsdorf <[email protected]> wrote:
Thomas, if I start a job using jobExecutor.execute("antjob", req); it waits until the job is finished.
Am 20.11.2014 09:44, schrieb Thomas Mortagne:
As indicated in the javadoc of JobExecutor all jobs are executed asychronously. You actually need to use Job#join when you want to wait.
On Thu, Nov 20, 2014 at 9:38 AM, Stefan Bernsdorf <[email protected]> wrote:
Hi, I have seen that the jobManager is deprecated since 6.1. But how would I schedule a job and return immediately using the jobExecutor? (Using the jobManager it would be something like : Job job = jobManager.addJob("jobtype", request)) Thanks , Stefan. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne