You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stale parameter on the Nomad HTTP API determines the consistency mode for query endpoints. If the stale flag is set, a request to a follower will be served without being forwarded to the leader. Unfortunately the API server tolerates this flag have a value, but it only acts on the flag being set.
This means a request like /v1/jobs?stale=false is treated as a stale query. While the documentation is straightforward on this, it's bad ergonomics and can lead to mistakes. Instead, we should parse any value as a boolean (and keep the existing behavior where if the flag is set without a value, the query is stale). So in other words we want:
querystring
is stale query?
?stale
yes
?stale=true
yes
?stale=false
no
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
The
stale
parameter on the Nomad HTTP API determines the consistency mode for query endpoints. If thestale
flag is set, a request to a follower will be served without being forwarded to the leader. Unfortunately the API server tolerates this flag have a value, but it only acts on the flag being set.This means a request like
/v1/jobs?stale=false
is treated as a stale query. While the documentation is straightforward on this, it's bad ergonomics and can lead to mistakes. Instead, we should parse any value as a boolean (and keep the existing behavior where if the flag is set without a value, the query is stale). So in other words we want:?stale
?stale=true
?stale=false
The text was updated successfully, but these errors were encountered: