Returns the current job context.
Optional
If true (default), throws when no context is found. If false, returns undefined.
if no job context is found and required is true
Returns the current job context.