Skip to content

Commit

Permalink
Merge pull request #1383 from CDCgov/more-health-check
Browse files Browse the repository at this point in the history
Improve Slot Swapping
  • Loading branch information
halprin authored Oct 4, 2024
2 parents 90576b6 + f4eca4e commit 338be18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ jobs:
slot-name: pre-live
images: '${{ inputs.REGISTRY }}/${{ inputs.REPO }}:${{ github.sha }}'

- name: Sleep 2 minutes
run: sleep 2m

- name: Azure Swap Slots
uses: azure/CLI@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
public class App {
private static final long MAX_REQUEST_SIZE = 2 * 1024 * 1024L; // 2 MB in bytes
private static final int PORT = 8080;
static final String HEALTH_API_ENDPOINT = "/health";
private static final String HEALTH_API_ENDPOINT = "/health";
private static final String ROOT_API_ENDPOINT = "/";

public static void main(String[] args) {
var app =
Expand All @@ -50,6 +51,7 @@ public static void main(String[] args) {

try {
app.get(HEALTH_API_ENDPOINT, ctx -> ctx.result("Operational"));
app.get(ROOT_API_ENDPOINT, ctx -> ctx.result("Operational"));

registerClasses();
registerDomains(app);
Expand Down

0 comments on commit 338be18

Please sign in to comment.