{"action":"created","issue":{"url":"https://api.github.com/repos/DFHack/dfhack/issues/487","labels_url":"https://api.github.com/repos/DFHack/dfhack/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/DFHack/dfhack/issues/487/comments","events_url":"https://api.github.com/repos/DFHack/dfhack/issues/487/events","html_url":"https://github.com/DFHack/dfhack/issues/487","id":54026839,"number":487,"title":"workflow: some resumed jobs are ignored by dwarves","user":{"login":"kimitsu","id":852688,"avatar_url":"https://avatars.githubusercontent.com/u/852688?v=3","gravatar_id":"","url":"https://api.github.com/users/kimitsu","html_url":"https://github.com/kimitsu","followers_url":"https://api.github.com/users/kimitsu/followers","following_url":"https://api.github.com/users/kimitsu/following{/other_user}","gists_url":"https://api.github.com/users/kimitsu/gists{/gist_id}","starred_url":"https://api.github.com/users/kimitsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimitsu/subscriptions","organizations_url":"https://api.github.com/users/kimitsu/orgs","repos_url":"https://api.github.com/users/kimitsu/repos","events_url":"https://api.github.com/users/kimitsu/events{/privacy}","received_events_url":"https://api.github.com/users/kimitsu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DFHack/dfhack/labels/bug","name":"bug","color":"ff4f4f"},{"url":"https://api.github.com/repos/DFHack/dfhack/labels/workflow","name":"workflow","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-12T07:28:43Z","updated_at":"2015-05-23T03:17:05Z","closed_at":null,"body":"There seem to be a situation for some jobs: a job that gets resumed (after item constraint check) is ignored by dwarfes - it shows up as resumed in workshop, but never gets active. Manual suspending/resuming does not resolve the issue, using \"now!\" or moving jobs around in the list does nothing too. Marking workshop for removal and stopping removal, after which jobs get restored in suspended state, and then resuming them manually doesn't seem to reliably solve the issue. Canceling repeat, cancelling the job and then adding the job back manually solves the problem for time being.\r\nExample save (dfhack 0.40.23-r1): http://kimitsudesu.net/files/df/region1.zip\r\nOn level -4 there is a clothier's workshop with bunch of resumed jobs that are ignored even though most of the dwarfs have that labor active. Note that there is another clothier's workshop to the left of it. It had the same set of jobs and they were supposed to work in parallel, but in fact only one of them worked and the other got stuck. To isolate the issue I cleared all jobs from the one workshop that worked."},"comment":{"url":"https://api.github.com/repos/DFHack/dfhack/issues/comments/104823779","html_url":"https://github.com/DFHack/dfhack/issues/487#issuecomment-104823779","issue_url":"https://api.github.com/repos/DFHack/dfhack/issues/487","id":104823779,"user":{"login":"acwatkins","id":6557344,"avatar_url":"https://avatars.githubusercontent.com/u/6557344?v=3","gravatar_id":"","url":"https://api.github.com/users/acwatkins","html_url":"https://github.com/acwatkins","followers_url":"https://api.github.com/users/acwatkins/followers","following_url":"https://api.github.com/users/acwatkins/following{/other_user}","gists_url":"https://api.github.com/users/acwatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/acwatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acwatkins/subscriptions","organizations_url":"https://api.github.com/users/acwatkins/orgs","repos_url":"https://api.github.com/users/acwatkins/repos","events_url":"https://api.github.com/users/acwatkins/events{/privacy}","received_events_url":"https://api.github.com/users/acwatkins/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T03:17:05Z","updated_at":"2015-05-23T03:17:05Z","body":"I've tested for a few days, it seems solid except for making bone bolts still getting occasionally stuck on me, not sure if it is related.  Please test for stability, as setting to -1 in the past caused a crash.  The if check to see if it needs to be suspended seems to have fixed that issue, though it would be good to get more people testing it.  (Hopefully it isn't just less likely to occur)\r\n\r\nAlso note, existing stuck jobs wont be unblocked by this change.  This change is only for newly resumed jobs.  So, for existing stuck jobs, you must cancel them as before."}}