diff --git a/.github/workflows/go_worker.yml b/.github/workflows/go_worker.yml index 3943bef..4c7fe6b 100644 --- a/.github/workflows/go_worker.yml +++ b/.github/workflows/go_worker.yml @@ -12,7 +12,8 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v6 with: - go-version-file: worker/go.mod + go-version: '1.27.x' + check-latest: true cache-dependency-path: worker/go.sum - name: Check formatting run: test -z "$(gofmt -l .)" diff --git a/README.md b/README.md index d3a91f0..1524c2b 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,6 @@ Set `redis_port` to the server's TLS listener port if it differs from 6379. Clients do not need their own certificate or a certificate path. For a local plaintext Redis server, explicitly pass `redis_tls=False`. The standalone worker likewise defaults to TLS; use `--redis-tls=false` for plaintext. -Upgrade the worker executable on compute nodes together with the Python package -because the job ID is now sent in the JSON payload on stdin instead of a command-line flag. ## Simple job diff --git a/worker/README.md b/worker/README.md index 304e5a0..c3751a0 100644 --- a/worker/README.md +++ b/worker/README.md @@ -5,8 +5,7 @@ and forwards stdout, stderr, lifecycle status, and heartbeats to Redis. It is launched by Slurm Manager, not as a system service. The worker reads `job_id`, `script`, and `activation` from a JSON object on stdin. -The job ID is kept out of process arguments; the `--job-id` flag is no longer supported. -Upgrade the worker and Python package together. The ID remains in the submitted +The job ID is kept out of process arguments. The ID remains in the submitted Slurm batch script, which must be protected from other users. Activation and workload scripts receive the job ID as `SLURM_WORKER_JOBID` in @@ -16,7 +15,7 @@ the ID in Slurm output and Redis logs. ## Builds -With Go installed, `make build` creates `../dist/bec-slurm-worker-linux-amd64`. +With Go 1.27.3 or later installed, `make build` creates `../dist/bec-slurm-worker-linux-amd64`. Use `TARGET_ARCH=arm64` for ARM64. With GoReleaser 2.18.0 installed, `make package VERSION=0.2.0` creates static Linux diff --git a/worker/go.mod b/worker/go.mod index 78f39fe..79cde68 100644 --- a/worker/go.mod +++ b/worker/go.mod @@ -1,6 +1,6 @@ module github.com/bec-project/slurm_manager/worker -go 1.26.0 +go 1.27.3 require ( github.com/alicebob/miniredis/v2 v2.40.0