{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1815","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1815/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1815/comments","events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1815/events","html_url":"https://github.com/jenkinsci/jenkins/pull/1815","id":104225255,"number":1815,"title":"[JENKINS-30084] flyweighttasks added to buildables list when the executor is not available","user":{"login":"varmenise","id":5398781,"avatar_url":"https://avatars.githubusercontent.com/u/5398781?v=3","gravatar_id":"","url":"https://api.github.com/users/varmenise","html_url":"https://github.com/varmenise","followers_url":"https://api.github.com/users/varmenise/followers","following_url":"https://api.github.com/users/varmenise/following{/other_user}","gists_url":"https://api.github.com/users/varmenise/gists{/gist_id}","starred_url":"https://api.github.com/users/varmenise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varmenise/subscriptions","organizations_url":"https://api.github.com/users/varmenise/orgs","repos_url":"https://api.github.com/users/varmenise/repos","events_url":"https://api.github.com/users/varmenise/events{/privacy}","received_events_url":"https://api.github.com/users/varmenise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2015-09-01T09:29:08Z","updated_at":"2015-09-18T11:02:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1815","html_url":"https://github.com/jenkinsci/jenkins/pull/1815","diff_url":"https://github.com/jenkinsci/jenkins/pull/1815.diff","patch_url":"https://github.com/jenkinsci/jenkins/pull/1815.patch"},"body":"This is to make the flyweight tasks to be part of the buildable list if the executor they are restricted to run on (if any) is not available and needs to be provisioned. See: [JENKINS-30084](https://issues.jenkins-ci.org/browse/JENKINS-30084)\r\n\r\nAt the moment if a flyweight task is restricted to a specific node, but the node is offline, we put the task in blocked-state. At the next iteration we check if the node is online, if not we leave the task in the blocked queue. This means we never ask the node to be provisioned.\r\n\r\nThis fix creates a buildable item if no executors are available, so that the node can be provisioned. Once the node is provisioned, the task is executed and the item removed from the list."},"comment":{"url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments/141418562","html_url":"https://github.com/jenkinsci/jenkins/pull/1815#issuecomment-141418562","issue_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1815","id":141418562,"user":{"login":"KostyaSha","id":231611,"avatar_url":"https://avatars.githubusercontent.com/u/231611?v=3","gravatar_id":"","url":"https://api.github.com/users/KostyaSha","html_url":"https://github.com/KostyaSha","followers_url":"https://api.github.com/users/KostyaSha/followers","following_url":"https://api.github.com/users/KostyaSha/following{/other_user}","gists_url":"https://api.github.com/users/KostyaSha/gists{/gist_id}","starred_url":"https://api.github.com/users/KostyaSha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KostyaSha/subscriptions","organizations_url":"https://api.github.com/users/KostyaSha/orgs","repos_url":"https://api.github.com/users/KostyaSha/repos","events_url":"https://api.github.com/users/KostyaSha/events{/privacy}","received_events_url":"https://api.github.com/users/KostyaSha/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T11:02:11Z","updated_at":"2015-09-18T11:02:11Z","body":"@stephenc parent will also lost descriptions that are spread on all single commits and to understand what this 'single change' introduced you should follow all 20 commits and read their descriptions."}}