| Summary: | JobManagerAdapter hanging onto old jobs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ian Bull <irbull> | ||||
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | b.muskalla, loic.bertholet, philippe.nembrard | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.3 M2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 139968 [details]
Proposed fix
Removes the if( !job.shouldSchedule() )
I cant find a reason why this if statement was necessary in the first place, however I am uncertaint about possible side effects.
*** Bug 274017 has been marked as a duplicate of this bug. *** Applied patch to CVS HEAD |
The list of job referenced by the JobManagerAdapter is hanging onto too many jobs. The only way elements are removed from this list is (on line 120): if( !job.shouldSchedule() ) { jobs.remove( job ); } However, the default implementation of shouldSchedule() returns true, so unless a client specifically overrides shoudlSchedule, the job will never be removed from this list.