#11688 Add tail tasks to Rust
Issue created by
Eric-Arellano
Tail tasks are tasks that can be run async after the Pants run when Pantsd is used, but otherwise must be blocked on to finish. For example, writing to the remote cache is currently always async, which is not safe when pantsd is disabled:
pants/src/rust/engine/process_execution/src/remote_cache.rs
Lines 526 to 536 in </pantsbuild/pants/commit/2649b5de8d60e813bc842c9bfe8b4e7b222c49ad|2649b5d>
See
#11504 for an example, although per discussion in
#11433, this should likely determine whether to join the thread based on the logic in the async streaming workunit handler.
pantsbuild/pants