Skip to content

Commit

Permalink
Dump transaction ids
Browse files Browse the repository at this point in the history
  • Loading branch information
akoptelov committed Oct 30, 2023
1 parent b326f96 commit 27a8f3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions helm/runner/templates/_job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -13,6 +17,9 @@ template:
{{ include "runner.networkArgs" . | indent 10 }}
{{ include "runner.sendArgs" . | indent 10 }}
]
volumeMounts:
- name: tmp
mountPath: /tmp
{{ end }}

{{ define "runner.loadArgs" }}
Expand Down
3 changes: 2 additions & 1 deletion src/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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, {});
}
Expand Down

0 comments on commit 27a8f3f

Please sign in to comment.