AnsweredAssumed Answered


Question asked by fbrcls on Jan 6, 2015
Latest reply on Jan 8, 2015 by trademak

I recently upgraded from version 5.14 to 5.17. I see that the method waitForJobExecutorToProcessAllJobs is moved from TestHelper to JobTestHelper. This method calls the method areJobsAvailable. The implementation of this method was changed from this:

  public static boolean areJobsAvailable(ProcessEngineConfigurationImpl processEngineConfiguration) {
    return !processEngineConfiguration

to this:

  public static boolean areJobsAvailable(ManagementService managementService) {
    return !managementService.createJobQuery().list().isEmpty();

The .executable() was removed. Is there a reason for this? This method returns now "true" if there are timers waiting. It wasn't the case before.

I made my own implementation of this method and putted the .executable() back. But the query always returns an empty list even if I have waiting jobs with retries > 0 and dueDate = null. Is this a bug?

Thanks for your support.