Skip to content

Commit

Permalink
Call startEngine with engine task
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Dec 2, 2023
1 parent f80e55b commit bf284c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Code, ConnectError} from '@bufbuild/connect'
import * as Sentry from '@sentry/node'
import {execa} from 'execa'
import {startBuildKit} from './tasks/buildkit'
import {startEngine} from './tasks/engine'
import {promises, sleep} from './utils/common'
import {DEPOT_CLOUD_CONNECTION_ID, DEPOT_MACHINE_AGENT_VERSION} from './utils/env'
import {client} from './utils/grpc'
Expand Down Expand Up @@ -40,6 +41,7 @@ async function runLoop() {
for await (const message of stream) {
if (!message.task) continue
if (message.task.case === 'buildkit') await startBuildKit(message, message.task.value)
if (message.task.case === 'engine') await startEngine(message, message.task.value)
}
} catch (err) {
if (err instanceof ConnectError && err.code === Code.Internal && err.message.includes('RST_STREAM')) {
Expand Down

0 comments on commit bf284c4

Please sign in to comment.