-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before we were returning 503s for anything other than `active` status - for some health check services (like AWS Fargate) you can only rely on the status code, and technically Electric in `waiting` and `active` status is ready to accept requests, just not service them. I've changed it so that: - `waiting` and `starting` return 202, requests are accepted and held but failed after a timeout if not activated - `active` returns 200 - `stopping` returns 503, we haven't implemented it yet anyway Not sure if we should consider this a breaking change and how we handle releases at the moment @KyleAMathews .
- Loading branch information
Showing
4 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@core/sync-service": patch | ||
--- | ||
|
||
Return `202` for `waiting` and `starting` health status - accepts requests but will fail to service them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters