aglio-worker 0.115.8 → 0.115.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/agent.js +11 -11
  2. package/package.json +1 -1
package/agent.js CHANGED
@@ -86941,17 +86941,6 @@ function containerPath(runRoot, workspace, hostPath) {
86941
86941
  async function runRemoteCardJob(deps) {
86942
86942
  const { job, workspace, runRoot, write } = deps;
86943
86943
  const lease = { jobId: job.id, leaseId: job.lease.id, token: job.lease.token };
86944
- let context;
86945
- try {
86946
- const workspaceReady = await stat3(join5(workspace, ".aglio")).then(
86947
- (info) => info.isDirectory(),
86948
- () => false
86949
- );
86950
- context = await deps.api.fetchContext({ ...lease, workspaceRoot: runRoot, workspaceReady });
86951
- await rm3(join5(workspace, ".aglio", SESSION_RESUME_MARKER), { force: true }).catch(() => void 0);
86952
- } catch (error63) {
86953
- return { state: "failed", error: `Could not load run context: ${errorText2(error63)}` };
86954
- }
86955
86944
  let claim3 = "started";
86956
86945
  if (deps.api.claimRun) {
86957
86946
  let lastError = null;
@@ -86973,6 +86962,17 @@ async function runRemoteCardJob(deps) {
86973
86962
  write("[aglio] waiting for a free run slot\n");
86974
86963
  return { state: "succeeded", error: null };
86975
86964
  }
86965
+ let context;
86966
+ try {
86967
+ const workspaceReady = await stat3(join5(workspace, ".aglio")).then(
86968
+ (info) => info.isDirectory(),
86969
+ () => false
86970
+ );
86971
+ context = await deps.api.fetchContext({ ...lease, workspaceRoot: runRoot, workspaceReady });
86972
+ await rm3(join5(workspace, ".aglio", SESSION_RESUME_MARKER), { force: true }).catch(() => void 0);
86973
+ } catch (error63) {
86974
+ return { state: "failed", error: `Could not load run context: ${errorText2(error63)}` };
86975
+ }
86976
86976
  const toolDir = join5(workspace, ".aglio", context.agent.driver);
86977
86977
  const homeHost = join5(toolDir, "home");
86978
86978
  const gitConfigPath = join5(workspace, ".aglio", "gitconfig");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aglio-worker",
3
- "version": "0.115.8",
3
+ "version": "0.115.10",
4
4
  "description": "Host machine agent for Aglio: claims jobs over the API and starts aglio-runner containers.",
5
5
  "type": "module",
6
6
  "bin": {