refine join workflow
This commit is contained in:
@@ -18,7 +18,7 @@ async def inspect_flake(
|
||||
actions = []
|
||||
# Extract the flake from the given URL
|
||||
# We do this by running 'nix flake prefetch {url} --json'
|
||||
cmd = nix_command(["flake", "prefetch", url, "--json"])
|
||||
cmd = nix_command(["flake", "prefetch", url, "--json", "--refresh"])
|
||||
proc = await asyncio.create_subprocess_exec(
|
||||
cmd[0],
|
||||
*cmd[1:],
|
||||
|
||||
@@ -115,7 +115,7 @@ command output:
|
||||
|
||||
|
||||
@router.get("/api/vms/{uuid}/status")
|
||||
async def vm_status(uuid: UUID) -> VmStatusResponse:
|
||||
async def get_vm_status(uuid: UUID) -> VmStatusResponse:
|
||||
task = get_task(uuid)
|
||||
status: list[int | None] = list(map(lambda x: x.returncode, task.procs))
|
||||
log.debug(msg=f"returncodes: {status}. task.finished: {task.finished}")
|
||||
|
||||
Reference in New Issue
Block a user