| Summary: | Job rescheduling doesn't work any more | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Christian <christian.hoesel> | ||||
| Component: | Workbench | Assignee: | 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: |
|
||||||
Could you provide a complete sefl-running snippet/project to reproduce the issue? 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.
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 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. New Gerrit change created: https://git.eclipse.org/r/157496 Gerrit change https://git.eclipse.org/r/157496 was merged to [master]. Commit: http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=7c2b5da0c30e8009e654bffc6678e061092ed94e |
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.