Skip to content

Commit

Permalink
websites-integration: polish
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Jun 7, 2024
1 parent c4cb96a commit 6f9b977
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/about_daangn_com-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,16 @@ jobs:
run: |
cd about.daangn.com && \
rclone copyto \
--stats 5 \
--log-level INFO \
--disable-http2 \
--transfers 8 \
--checkers 50 \
--buffer-size 128M \
--s3-chunk-size 128M \
--s3-upload-concurrency 8 \
--log-level INFO \
--stats 5 \
--contimeout 10s --timeout 300s \
--retries 5 --low-level-retries 10 \
"public.tar.zst" \
"r2:websites-artifacts/about.daangn.com/${{ inputs.deployment_id }}.tar.zst"
Expand Down
2 changes: 1 addition & 1 deletion _workers/websites-integration/deployment-awaiter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const artifactUrl = new URL(initData.artifact_url);
const timeout = Number.parseInt(values.timeout);

let bound = false;
let runUrl;

for await (const startTime of setInterval(5000, Date.now())) {
if (Date.now() - startTime >= timeout) {
Expand All @@ -87,7 +88,6 @@ for await (const startTime of setInterval(5000, Date.now())) {
throw new Error('invariant');
}

let runUrl;
if (state.runId && !bound) {
bound = true;
runUrl = `https://github.com/daangn/websites/actions/runs/${state.runId}`;
Expand Down

0 comments on commit 6f9b977

Please sign in to comment.