steve-chavez and Wolfgang Walther
aa82d2e277
Consider schema cache state on the ready check
...
* empty schema cache when it fails loading so the ready check can pick
its new state
2022-01-07 09:31:30 +01:00
steve-chavez
65a3ae08f0
Change admin health endpoint to ready
2022-01-04 20:12:52 -05:00
Steve Chavez and GitHub
ac3655df1d
feat: minimal health check ( #2092 )
2021-12-23 08:00:10 -05:00
monacoremo
47b6f04a66
refactor: Remove Protolude.Conv from AppState
2021-11-12 20:25:22 +01:00
monacoremo
5cd7d35966
refactor: Make import aliases consistent across the codebase
2021-11-05 08:08:00 +01:00
Gaurav Gautam and GitHub
d9f1ae6a46
feat: Add Retry-After hint ( #1916 )
...
Add Retry-After header when response status is 503.
Its value is the connection worker delay(seconds) when
it's recovering.
This closes issue #1817 .
2021-08-18 10:14:29 -05:00
Steve Chavez and GitHub
2944cf94c7
feat: Add time to startup/worker logs ( #1872 )
...
BREAKING CHANGE
Sends startup/worker logs to stderr to differentiate them from
access logs, which go to stdout
2021-06-19 15:55:18 -05:00
steve-chavez
d99909c403
feat: request.spec GUC for db-root-spec
...
The request.spec GUC contains the schema cache structure in json.
It's only available when the root endpoint(/) is requested and when
db-root-spec is not empty.
Also correct db-root-spec to accept a schema.
2021-05-30 16:48:08 -05:00
steve-chavez
f169661ce6
refactor: move DbStructure.PgVersion to Config
...
Now that PgVersion is not part of DbStructure, Config is a more apt
module for it.
Also rename getDbStructure to queryDbStructure. AppState also had a
getDbStructure function for a record field.
2021-05-30 16:48:08 -05:00
steve-chavez
082c91c855
refactor: remove pgVersion from DbStructure
...
Also use a dedicated MVar for listener
2021-04-30 10:06:07 -05:00
monacoremo
acd787a5af
refactor: Split main/Main.hs into library modules
2021-04-24 19:42:58 +02:00