We have been printing a message Detached. The process will keep running if the deployment process was terminated after the tail began, but this left a small window of time (between the deployment request being sent and the tail being initiated) where termination of the process would fail to cancel the deployment and we would not notify the user. This change covers that gap by sharing a cancellable context for both sending the deployment request and the tail.
Linked Issues
Checklist
[ ] I have performed a self-review of my code
[ ] I have added appropriate tests
[ ] I have updated the Defang CLI docs and/or README to reflect my changes, if necessary
Description
We have been printing a message
Detached. The process will keep running
if the deployment process was terminated after the tail began, but this left a small window of time (between the deployment request being sent and the tail being initiated) where termination of the process would fail to cancel the deployment and we would not notify the user. This change covers that gap by sharing a cancellable context for both sending the deployment request and the tail.Linked Issues
Checklist