dapr/pkg/runtime/processor
Josh van Leeuwen fe4546007f
Daprd: graceful shutdown (#6720)
* Gracefully shutdown Dapr, waiting for all go routines and servers to
close before exiting.

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

* Stop ticker when returning `startWorkloadCertRotation`

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

* Don't use concurrency runner when closing http servers. Concurrently
close apiClosers

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

* Review comments

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

* runtime_test.go Init pubsub before running runtime

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

* Pass through context to actor placement connection client

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

* Ensure placement client dial has context passed

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

* Ignore gRPC server stopped errors

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

* Gracefully shutdown Dapr, waiting for all go routines and servers to
close before exiting.

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

* Adds concurrency RuntimeCloserManager to handle closing of all
runtime components.

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

* Use a dedicated http client in tests which close idle connections on
test cleanup

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

* Address review comments

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

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2023-08-10 09:19:56 -07:00
..
binding Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
configuration Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
crypto Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
lock Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
middleware Refactor `runtime.go` to move component lifecycle managment into the runtime processor (#6688) 2023-07-25 13:43:09 -07:00
pubsub Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
secret Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
state Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
workflow Daprd: graceful shutdown (#6720) 2023-08-10 09:19:56 -07:00
processor.go add namespace support for outbox (#6792) 2023-08-09 19:46:48 -07:00
processor_test.go Refactor `runtime.go` to move component lifecycle managment into the runtime processor (#6688) 2023-07-25 13:43:09 -07:00