feat(serverless): filter live workers and wait for deploy - #112
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Expose the existing listWorkers state query and poll getApp after create so a deploy can block until the app is active or failed.
e6214d5 to
fef2b2c
Compare
Summary
apps workers --state live|allto the existinglistWorkersquery. The CLI previously only sent--status;--state livedrops terminal stopped rows, and--state live --status stoppedis a 422 from the API.--wait/--poll-intervalonserverless deploy.WaitApppollsgetAppuntil the app is active or failed (also stops on stopped/deleting/deleted so a wait cannot spin forever). A failed wait prints the last app snapshot, then surfaces the latestlistBuildserror when one exists.WaitAppis the reusable waiter for a later redeploy (PATCH appSource); this PR does not add that route.Test plan
runware serverless apps workers my-app --state liveomits stopped rowsrunware serverless apps workers my-app --state live --status stoppedreturns API 422--state liveincludes--state liverunware serverless deploy ... --waitreturns after the app isactive--waitexits non-zero and includes the build error whenlistBuildshas oneminWorkers=0can still beactivewith no live worker