src: stop spurious warnings on buildkit shutdown
parent
31dd0ccbdd
commit
4723a2a346
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -315,7 +315,7 @@ actionsToolkit.run(
|
|||
});
|
||||
}
|
||||
try {
|
||||
const {stdout} = await execAsync('pgrep -f buildkitd');
|
||||
const {stdout} = await execAsync('pgrep buildkitd');
|
||||
if (stdout.trim()) {
|
||||
await shutdownBuildkitd();
|
||||
core.info('Shutdown buildkitd');
|
||||
|
@ -490,8 +490,8 @@ export async function shutdownBuildkitd(): Promise<void> {
|
|||
// Wait for buildkitd to shutdown with backoff retry
|
||||
while (Date.now() - startTime < timeout) {
|
||||
try {
|
||||
await execAsync('pgrep -f buildkitd');
|
||||
// Process still exists, wait and retry
|
||||
const {stdout} = await execAsync('pgrep buildkitd');
|
||||
core.debug(`buildkitd process still running with PID: ${stdout.trim()}`);
|
||||
await new Promise(resolve => setTimeout(resolve, backoff));
|
||||
} catch (error) {
|
||||
if (error.code === 1) {
|
||||
|
|
|
@ -138,9 +138,9 @@ async function startBuildkitd(parallelism: number, device: string): Promise<stri
|
|||
|
||||
while (Date.now() - startTime < timeout) {
|
||||
try {
|
||||
const {stdout} = await execAsync('pgrep -f buildkitd');
|
||||
const {stdout} = await execAsync('pgrep buildkitd');
|
||||
if (stdout.trim()) {
|
||||
core.debug('buildkitd daemon started successfully');
|
||||
core.info(`buildkitd daemon started successfully with PID ${stdout.trim()}`);
|
||||
return addr;
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue