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

fixes #1574
This could be moved into the following `if`-statement.