Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009792Dwarf FortressDwarf Mode -- Jobs, Generalpublic2016-05-23 22:332016-06-04 14:10
SteveTheRed 
Toady One 
normalminoralways
resolvedfixed 
WindowsWindows 7SP 1
0.43.03 
0.43.04 
0009792: Managed jobs decrement all like orders, producing wrong number of total items
Managed jobs seem to count each item produced against all jobs that match it, which can result in fewer items being produced than you ordered.
Queue up multiple jobs for the same thing (for example, 4 beds, 4 beds and 4 beds). Watch progress and note that only 6 beds are produced, not 12.
Each time an item is produced, it is counted against every pending job that matches.

While the above example is trivial, quite often I want to have a job queue with an assortment of items for a high priority task, followed by a bunch of low priority production, often for the same items. So bed-door-cabinets-coffers for a noble room, then bed-door sets for the peasantry.

The count also only seems to be decremented for jobs other than the topmost priority if it's not the last item of the order. So for the 4/4/4 example above, it goes to 3/3/3, then 2/2/2, then 1/1/1, then 1/1 (first one finished and doesn't wipe out the other two), then 1, then complete with 6 beds having been made.
No tags attached.
has duplicate 0009803resolved Dwarfu Manager gets confused by multiple small orders 
has duplicate 0009537resolved Dwarfu Gold crafts fulfilling manager order for rock crafts 
Issue History
2016-05-23 22:33SteveTheRedNew Issue
2016-05-24 19:31SteveTheRedNote Added: 0035294
2016-05-25 15:11DwarfuNote Added: 0035299
2016-05-25 15:11DwarfuAssigned To => Dwarfu
2016-05-25 15:11DwarfuStatusnew => needs feedback
2016-05-25 22:56SteveTheRedIssue Monitored: SteveTheRed
2016-05-25 22:56SteveTheRedIssue End Monitor: SteveTheRed
2016-05-25 22:58SteveTheRedNote Added: 0035304
2016-05-25 22:58SteveTheRedStatusneeds feedback => assigned
2016-05-26 14:03DwarfuStatusassigned => confirmed
2016-05-26 14:04DwarfuSummaryManaged jobs produce wrong number of items => Managed jobs decrement all like orders, producing wrong number of total items
2016-05-28 19:13DwarfuRelationship addedhas duplicate 0009803
2016-05-28 21:12ChthonIssue Monitored: Chthon
2016-05-29 15:32ChthonNote Added: 0035332
2016-06-04 14:10Toady OneStatusconfirmed => resolved
2016-06-04 14:10Toady OneFixed in Version => Next Version
2016-06-04 14:10Toady OneResolutionopen => fixed
2016-06-04 14:10Toady OneAssigned ToDwarfu => Toady One
2017-11-18 01:04DwarfuRelationship addedhas duplicate 0009537

Notes
(0035294)
SteveTheRed   
2016-05-24 19:31   
Update: the counts for jobs to produce the same item are decremented even if the other job has not started yet (because of a condition).
(0035299)
Dwarfu   
2016-05-25 15:11   
Reminder sent to: SteveTheRed

Steve, post a save where this is happening. I've witnessed it myself, so I'll confirm it with a save.
(0035304)
SteveTheRed   
2016-05-25 22:58   
Well, ok: http://dffd.bay12games.com/file.php?id=12082 [^]

It's trivial to reproduce, so here's an example showing it in a brand new fort.
(0035332)
Chthon   
2016-05-29 15:32   
Just wanted to link this to mine. I encountered something similar in my report 0009803

As OP poste, it's trivial to produce. I don't know why a save is even required for this. I posted steps to produce in my report.