-
Notifications
You must be signed in to change notification settings - Fork 5
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
Extend duration documentation #162
Comments
Maybe it would be also worth clarifying that this is a duration within one run if it is a recurring dispatch. It is not related to the recurrence itself. |
@leandro-lucarella-frequenz how about? message Dispatch {
// ...
- // Duration in seconds
+ // Duration of the dispatch in seconds.
+ //
+ // The duration specifies how long each occurrence of the dispatch lasts during
+ // a single run, applies only to the individual instance and not the overall cycle of
+ // recurring dispatches. This setting is independent of the recurrence pattern,
+ // which is governed by separate recurrence settings.
+ //
+ // !!! note
+ // This field manages how long each occurrence of the dispatch lasts:
+ // - `null` value indicates an infinite duration, meaning each dispatch occurrence
+ //. continues indefinitely.
+ // - A value of `0` indicates a one-time execution for that particular occurrence,
+ // which does not repeat or persist beyond its initial run.
+ // - Positive values specify the duration in seconds for each dispatch occurrence
+ // should be active.
+ //
+ // Example of how to set duration
+ // duration_seconds: { value: 3600 } // Duration of 1 hour
+ // duration_seconds: null // Infinite duration
+ // duration_seconds: { value: 0 } // One-time execution
+ //
- // uint32 duration = 7;
+ // optional uint32 duration_seconds = 7;
} The |
I'd remove the "Maybe it would be also worth clarifying that " ;) |
Oh, sorry I've improved the above. |
What's needed?
We need to improve the documentation for the duration parameter as shown below:
Proposed solution
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: