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 -- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
