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

fixes #1574
Yes this could be a function