Skip to content
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

[WIP] Add --waitTimeout flag to dapr stop command #1363

Closed
wants to merge 15 commits into from

Conversation

nikitasarawgi
Copy link

Description

Adding a new --waitTimeout flag to the dapr stop command - This flag allows users to specify a timeout duration in seconds, which determines the maximum time the command will wait for the process to exit gracefully. If the process remains active after this timeout, the command will forcefully terminate it.
The default --waitTimeout value is set to 15 seconds.

WIP - This is implemented only for linux for now. Currently learning how windows event signals work.
Unit tests run successfully.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1160

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@nikitasarawgi nikitasarawgi requested review from a team as code owners October 27, 2023 15:47
@shubham1172
Copy link
Member

Hi @nikitasarawgi, welcome to Dapr 👋🏻 Could you please fix the DCO check? https://docs.dapr.io/contributing/contributing-overview/#developer-certificate-of-origin-signing-your-work

nikitasarawgi and others added 13 commits October 27, 2023 23:09
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
* Updates the Dapr version to v1.12.0-rc.1

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use correct rc tag name

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix string match on `HTTP server is running on port x`

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix error string check for `internal gRPC server`

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update dapr/dapr to 1.12.0-rc.3

Signed-off-by: joshvanl <me@joshvanl.dev>

* Rolling restart the sidecar injector during a restart

Signed-off-by: joshvanl <me@joshvanl.dev>

* Linting

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix string matching on dapr app output logs

Signed-off-by: joshvanl <me@joshvanl.dev>

* Increase e2e tests `20m` -> `25m`

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
* update dapr runtime to v1.12.0

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix dashboard version

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

---------

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: hdget <hdget@qq.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](golang/net@v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.57.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.57.0...v1.57.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Signed-off-by: Nikita Sarawgi <sarawgi.nikita@gmail.com>
Copy link
Collaborator

@mukundansundar mukundansundar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nikitasarawgi Can you add e2e for this feature?

@dapr-bot
Copy link
Collaborator

dapr-bot commented Dec 2, 2023

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot added the stale label Dec 2, 2023
@dapr-bot
Copy link
Collaborator

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot closed this Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Proposal] dapr stop should wait until process actually exits
7 participants