Add a retention period for the temporary workspace

This has no effect by default, as the retention period defaults
to 0; however, if set, this keeps the workspace data around for
the given time, which can be very useful for debugging errors in
jobs.