Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 559612

Summary: Job rescheduling doesn't work any more
Product: [RT] RAP Reporter: Christian <christian.hoesel>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.11   
Target Milestone: 3.12   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/157496
https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=7c2b5da0c30e8009e654bffc6678e061092ed94e
Whiteboard:
Attachments:
Description Flags
Example-Project none

Description Christian CLA 2020-01-28 04:40:57 EST
Rescheduling of jobs doesn't work anymore. After the first run the job will not run again. I've tested this with RAP 3.11 and the following example:

public class MyJob extends Job {

	public MyJob() {
	   super("My Repeated Job");
	}

	@Override
	protected IStatus run(IProgressMonitor monitor) {
	   schedule(10000);
           return Status.OK_STATUS;
	}
}

In RAP 3.9 and 3.10 rescheduling still works, it event works with the current RCP target.
Comment 1 Ivan Furnadjiev CLA 2020-01-31 07:20:20 EST
Could you provide a complete sefl-running snippet/project to reproduce the issue?
Comment 2 Christian CLA 2020-01-31 08:34:51 EST
Created attachment 281667 [details]
Example-Project

This example job prints a message every time it runs. I also added 2 target platforms to switch between RAP 3.10 and 3.11.
Comment 3 Ivan Furnadjiev CLA 2020-02-10 06:09:43 EST
Probably related to this commit [1] in org.eclipse.core.jobs bundle. Could you please try with org.eclipse.core.jobs_3.10.500.v20190620-1426 bundle in your target?

[1] https://github.com/eclipse/eclipse.platform.runtime/commit/66e8d78640da35b31e753647b00faa9f372df8da
Comment 4 Christian CLA 2020-02-10 06:56:36 EST
It works as expected with org.eclipse.core.jobs_3.10.500.v20190620-1426 which is part of the RAP 3.10 target.
The RAP 3.11 target contains org.eclipse.core.jobs.source_3.10.600.v20191122-2104.jar.
Comment 5 Eclipse Genie CLA 2020-02-11 08:00:39 EST
New Gerrit change created: https://git.eclipse.org/r/157496