Comments (7)
@elabedo the given duration is an upper bound. Dapr will also stop blocking when the app reports as unhealthy, which your application has runtime context for when to do, i.e. all messages have been processed.
from dapr.
@elabedo it is implied via the statement “from starting until the given duration has elapsed or the application becomes unhealthy”
https://docs.dapr.io/reference/arguments-annotations-overview/
I must admit that I remember the verbiage being a lot more explicit in conveying the “upper bound” behaviour, though I was thinking of the release notes.
from dapr.
Hi @elabedo, does --dapr-block-shutdown-duration
do what you want? This will block until the app reports as unhealthy which you can control.
https://docs.dapr.io/reference/arguments-annotations-overview/
from dapr.
Hi @JoshVanL , i think using --dapr-block-shutdown-duration
is a workaround more than the right solution as I have described above my opinion about this option. In fact, we cannot set a duration that we cannot predict which number to set.
For Example: If we put --dapr-block-shutdown-duration=20
and the last request finished to process before(i.e. 500ms to finish), so we prevent scale down of the pod because we need to wait 19,5 seconds based on the option used. Do you confirm that @JoshVanL ?
from dapr.
Hi @JoshVanL, Thank you for your answer. If you can highlight in the documentation of --dapr-block-shutdown-duration
that this value is the "upper bound".
from dapr.
This issue has been automatically marked as stale because it has not had activity in the last 60 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.
from dapr.
This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.
from dapr.
Related Issues (20)
- Placement service fails to upgrade when logs are saved on disk HOT 1
- [linter] Canonicalheader HOT 1
- [linter] copyloopvar HOT 1
- [linter] spancheck HOT 1
- [linter] intrange HOT 1
- [linter] fatcontext HOT 1
- Actor traces - Configurable
- [linter] perfsprint
- [linter] testifylint
- [linter] gosec
- [linter] govet
- no space left on device "volumes/kubernetes.io~empty-dir/dapr-operator-tmp" HOT 3
- Memory consumption problem using Workflow in daprd. V1.14.1. OOMKilled HOT 4
- Transactional outbox - override topic cloudevent field
- Use the scheduler service for actor reminders by default (v1.15)
- `View the backlog` button broken on https://docs.dapr.io/contributing/roadmap/ HOT 2
- Document the project's release process and guidelines publicly in a RELEASES.md or equivalent file HOT 1
- DaprClient.GetMetadataAsync() throwing Exception
- initialization error occurred for pubsub (pubsub.redis/v1) HOT 5
- Circuit breaker not working for pub and sub components with retry policies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dapr.