Update formatting on worker
Build and Push Spoon Images / quality (push) Successful in 1m27s
Build and Push Spoon Images / build-images (push) Successful in 7m13s

This commit is contained in:
Gabriel Brown
2026-06-24 08:40:52 -04:00
parent 5f7d56369f
commit 65aae85369
11 changed files with 130 additions and 93 deletions
+12 -19
View File
@@ -1,5 +1,5 @@
import { execa } from 'execa';
import path from 'node:path';
import { execa } from 'execa';
import { env } from '../env';
@@ -134,15 +134,9 @@ export const startWorkspaceContainer = async (args: {
publishTcpPort?: number;
}) => {
await ensureJobImagePulled();
await execa(
containerRuntime(),
[
'rm',
'-f',
args.containerName,
],
{ reject: false },
);
await execa(containerRuntime(), ['rm', '-f', args.containerName], {
reject: false,
});
const result = await execa(
containerRuntime(),
[
@@ -177,7 +171,10 @@ export const startWorkspaceContainer = async (args: {
};
};
const getPublishedPort = async (containerName: string, containerPort: number) => {
const getPublishedPort = async (
containerName: string,
containerPort: number,
) => {
const result = await execa(
containerRuntime(),
['port', containerName, `${containerPort}/tcp`],
@@ -317,14 +314,10 @@ export const stopWorkspaceContainer = async (containerName: string) => {
};
export const inspectWorkspaceContainer = async (containerName: string) => {
const result = await execa(
containerRuntime(),
['inspect', containerName],
{
all: true,
reject: false,
},
);
const result = await execa(containerRuntime(), ['inspect', containerName], {
all: true,
reject: false,
});
return {
exists: result.exitCode === 0,
output: result.all,