diff --git a/helm/runner/templates/_job.tpl b/helm/runner/templates/_job.tpl index 5d87713..0b1dfa6 100644 --- a/helm/runner/templates/_job.tpl +++ b/helm/runner/templates/_job.tpl @@ -3,6 +3,10 @@ template: spec: restartPolicy: Never + volumes: + - name: tmp + hostPath: + path: /tmp containers: - name: main image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" @@ -13,6 +17,9 @@ template: {{ include "runner.networkArgs" . | indent 10 }} {{ include "runner.sendArgs" . | indent 10 }} ] + volumeMounts: + - name: tmp + mountPath: /tmp {{ end }} {{ define "runner.loadArgs" }} diff --git a/src/local.ts b/src/local.ts index 967f030..c94ba50 100644 --- a/src/local.ts +++ b/src/local.ts @@ -131,7 +131,7 @@ LoadRegistry.registerLoadCommand(runCommand, async (opts, load, _name) => { const mina = await MinaBlockchainConnection.create(nodesSource(nodes)); const accounts = new PrivateKeysSource(keys, mina); const txStore = transactionStore(); - const idsStore = await transactionIdsStore(); + const idsStore = await FileTransactionIdsStore.create(); const loadGen = new LoadGenerator(mina, accounts); @@ -145,6 +145,7 @@ LoadRegistry.registerLoadCommand(runCommand, async (opts, load, _name) => { rotateSenders: rotateKeys, rotateNodes, }); + idsStore.commit('/tmp/transaction-ids.json'); if (wait) { await loadGen.waitAll(idsStore, {}); }