refine join workflow

This commit is contained in:
Johannes Kirschbauer
2023-09-30 16:00:21 +02:00
parent 2f73b47efc
commit 1c685bdf33
16 changed files with 497 additions and 279 deletions

View File

@@ -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:],

View File

@@ -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}")