Bug 1400579

Summary: Jobs with status "WAITING" never get processed
Product: [Community] Candlepin Reporter: Shayne Riley <sriley>
Component: candlepinAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: medium    
Version: 0.9.51CC: csnyder, mstead, redakkan, skallesh
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 18:50:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Shayne Riley 2016-12-01 14:18:28 UTC
Description of problem:

If there is a job in the queue marked "WAITING", it will never get processed until candlepin is restarted.


Version-Release number of selected component (if applicable):
0.9.51.20


How reproducible:
Always


Steps to Reproduce:
1. Create two identical jobs, one immediately after the other. For example, create two jobs to refresh the pools of a specific owner. Make note of both of the job ids.
2. Poll the first job until its status reads "FINISHED"
3. Poll the second job. Its status will always be "WAITING"

Actual results:
The job marked "WAITING" never gets processed.


Expected results:
The job gets processed if the queue isn't too full and the first job is completed.