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

fixes #1574
Is there a reason why this is a macro and not a function?