We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b99970e commit 78a389fCopy full SHA for 78a389f
src/dstack/_internal/server/services/logs/aws.py
@@ -141,6 +141,11 @@ def _get_log_events_with_retry(
141
stream,
142
self.MAX_RETRIES,
143
)
144
+ # Only return the next token after exhausting retries if going descending—
145
+ # AWS CloudWatch guarantees more logs in that case. In ascending mode,
146
+ # next token is always returned, even if no logs remain.
147
+ # So descending works reliably; ascending has limits if gaps are too large.
148
+ # In the future, UI/CLI should handle retries, and we can return next token for ascending too.
149
return [], next_token if request.descending else None
150
151
def _get_log_events(
0 commit comments