Review this C++ resource handoff. enqueue takes ownership of the job; the caller logs the job id afterward.
enqueue