Skip to content

check exits early if another check is running - #479

Closed
taylorsilva wants to merge 1 commit into
masterfrom
guard-checks
Closed

taylorsilva wants to merge 1 commit into
masterfrom
guard-checks

Conversation

@taylorsilva

@taylorsilva taylorsilva commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Noticed a check container was stuck running in CI. When I jumped into it I found two instances of the script running. I think the re-use of the container + in-memory checks across web nodes may be the source of the issue; just a theory though. Adding this lock guard should avoid this scenario.

Output I saw in the check container:

bash-5.3# ps aux
PID   USER     TIME  COMMAND
    1 root      0:00 /tmp/gdn-init
 1347 root      0:00 {check} /bin/bash /opt/resource/check
 1353 root      0:00 {check} /bin/bash /opt/resource/check
 1354 root      0:00 cat
 1355 root      0:00 bash
 1360 root      0:00 ps aux

Noticed a check container was stuck running in CI. When I jumped into it
I found two instances of the script running. I think the re-use of the
container + in-memory checks across web nodes may be the source of the
issue; just a theory though. Adding this lock guard should avoid this
scenario.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team July 15, 2026 16:36
@Kump3r

Kump3r commented Jul 15, 2026

Copy link
Copy Markdown

Is it also applicable for other resources, just wondering as we noticed time resource also stuck randomly at times.

@taylorsilva

taylorsilva commented Jul 16, 2026 •

Copy link
Copy Markdown
Member Author

This would affect other resources as well. That's why I left this open, wanted to think about this a bit more before merging (might not merge at all). Wondering if there's a change we should make in Concourse instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants