[RFC] job: Add optional {flags} parameter.

fixes #1574
Needs a `flags++` somewhere to get out of the loop.