-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proposal] dapr stop
should wait until process actually exits
#1160
Comments
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
I think adding a |
/assign |
So the ideal solution here would be a --wait flag (along with other flags like run-file) with a default timeout of say, 30 seconds? (please feel free to suggest a better value). Once this time has passed, the process should be checked to confirm if they have been successfully killed. In either case, whether they have been killed or not, we just log the status and go ahead with the completion of dapr stop? |
maybe slightly less for the default value? like 15 seconds but otherwise I think sounds good IMO |
@nikitasarawgi to my understanding:
See SIGKILL vs SIGTERM: https://askubuntu.com/a/481173 |
+1 on 15 sec |
Hi @nikitasarawgi, I agree the |
Describe the proposal
Currently the
dapr stop
command executes akill
command (or equivalent, for Windows) to stop adapr
ordaprd
process. However, this is asynchronous; the process may still take some time to actually exit. Scripts or other tooling that use thedapr stop
command may have an expectation that, upon completion ofdapr stop
, processes have actually exited.dapr stop
should ensure that the process has exited before the command itself exits (within a suitable or perhaps configurable timeout).Release Note
RELEASE NOTE:
The text was updated successfully, but these errors were encountered: