In a production site's program I want to state the following:
[do1] sleep=20000 consume=goods worker=do_job1
[do2] sleep=5000 worker=do_job2
[work] call=do1 call=do2 return=skipped
This is in a production site which defines an input of goods. No I have the problem, that if the input queue is empty, the site's program is always stopped at call=do1 and fails, never going to call=do2.
In the "Widelands Productionsite Program Reference" document I found that there are failure handlers on the call command - on failure [fail|repeat|ignore] I suppose ignore is the one I want to use, but it doesn't work anymore, the engine says to use [fail|complete|skip|repeat]. There's no documentation on skip and complete, but neither one resolves my problem. Is this already implemented? I'm using quite recent SVN revision. What should I do to continue the [work] program to call=do2 if the input queue is empty for call=do1 ?
Sorry if this is the wrong forum for this topic.