# Interesting API behavior

**URL:** <https://community.jenkins.io/t/interesting-api-behavior/14333>\
**Category:** Using Jenkins\
**Tags:** api\
**Created:** [April 17, 2024, 6:06pm UTC](https://community.jenkins.io/t/interesting-api-behavior/14333 "2024-04-17T18:06:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geniusister](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@geniusister](https://community.jenkins.io/u/geniusister)\
**Post date:** [April 17, 2024, 6:06pm UTC](https://community.jenkins.io/t/interesting-api-behavior/14333/1 "2024-04-17T18:06:44Z")

</div>

Jenkins setup: Version 2.414.2

Hi, I am currently writing a bot for jenkins and I am experiencing abnormal API behavior. On the 7th, everything was fine and I could parse the queue. But now I can’t do that, I’ve lost the “name” position

> {  
> “\_class” : “hudson.model.Queue$BuildableItem”,  
> “actions” : [
> 
> ```
> ],
> "blocked" : False,
> "buildable" : True,
> "id" : 8,
> "inQueueSince" : 1713376095721,
> "params" : "",
> "stuck" : False,
> "task" : {
> "_class" : "org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask"
> },
> "url" : "queue/item/8/",
> "why" : "Waiting for next available executor",
> "buildableStartMilliseconds" : 1713376095722,
> "pending" : False
> }
> 
> ```

Who can tell you how to fix this and remove job names from the queue?

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [April 17, 2024, 6:24pm UTC](https://community.jenkins.io/t/interesting-api-behavior/14333/2 "2024-04-17T18:24:02Z")

</div>

I think this is expected. What you see here is a node step waiting for an executor so it is not a complete job, like freestyle.  
You can use `queue/api/json?depth=1` to see a bit more information, e.g. the url of the run, from that you could reconstruct the job name

---

<div class="post-metadata">

**Author:** ![geniusister](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@geniusister](https://community.jenkins.io/u/geniusister)\
**Post date:** [April 17, 2024, 8:50pm UTC](https://community.jenkins.io/t/interesting-api-behavior/14333/3 "2024-04-17T20:50:43Z")

</div>

thanks, I used the python library. there was initially a depth of 0. I slightly changed the library and everything worked 🙂
