Job is scheduled to agent event when agent lacks resources to complete job#816

Subscribe to Job is scheduled to agent event when agent lacks resources to complete job 5 post(s), 3 voice(s)

 
Avatar Pete Mounce 47 post(s) #2174 I was briefly flummoxed by a hung job earlier; it turns out that I’d added a resource to the job, and not set it up for the agent. In this situation, I would expect:
  • Cruise to not pick that agent to schedule the job to
  • A warning if no agents are available with all the resources (perhaps a feedback box to the right of the job title, on the activity pages?)
 
Avatar Jez Humble Administrator 108 post(s) #2188

Hey Pete

Thanks for your feedback.

If you have a resource configured on a job that is not configured on an agent, that agent should not pick up the job. Did you add the resource to the job after it had been scheduled?

We are planning to add a warning for jobs that cannot be built because no agent has the available resources.

 
Avatar Pete Mounce 47 post(s) #2192

I think the agent picked up the job in spite of not having the resource. I don’t remember whether I added the resource after the build was scheduled – but I don’t think so.

 
Avatar Chris Turner Moderator 10 post(s) #2200

Pete,

If you see this happening again, could you let us know? I just took a look at the code, and I’m not able to find how that could have happened…

Chris

 
Avatar Pete Mounce 47 post(s) #2216

Will do.