aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/exec_cmd.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-02-24 15:36:59 +0100
committerGitHub Enterprise <[email protected]>2026-02-24 15:36:59 +0100
commit3cfc1b18f6b86b9830730f0055b8e3b955b77c95 (patch)
treea4ab26cbfe2b30580408685634b74934936c2ee6 /src/zen/cmds/exec_cmd.cpp
parentVarious bug fixes (#778) (diff)
downloadarchived-zen-3cfc1b18f6b86b9830730f0055b8e3b955b77c95.tar.xz
archived-zen-3cfc1b18f6b86b9830730f0055b8e3b955b77c95.zip
Add `zen ui` command (#779)
Allows user to automate launching of zenserver dashboard, including when multiple instances are running. If multiple instances are running you can open all dashboards with `--all`, and also using the in-terminal chooser which also allows you to open a specific instance. Also includes a fix to `zen exec` when using offset/stride/limit
Diffstat (limited to 'src/zen/cmds/exec_cmd.cpp')
-rw-r--r--src/zen/cmds/exec_cmd.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zen/cmds/exec_cmd.cpp b/src/zen/cmds/exec_cmd.cpp
index 2d9d0d12e..407f42ee3 100644
--- a/src/zen/cmds/exec_cmd.cpp
+++ b/src/zen/cmds/exec_cmd.cpp
@@ -360,6 +360,13 @@ ExecCommand::ExecUsingSession(zen::compute::FunctionServiceSession& FunctionSess
return false;
};
+ int TargetParallelism = 8;
+
+ if (OffsetCounter || StrideCounter || m_Limit)
+ {
+ TargetParallelism = 1;
+ }
+
m_RecordingReader->IterateActions(
[&](CbObject ActionObject, const IoHash& ActionId) {
// Enqueue job
@@ -444,7 +451,7 @@ ExecCommand::ExecUsingSession(zen::compute::FunctionServiceSession& FunctionSess
DrainCompletedJobs();
},
- 8);
+ TargetParallelism);
// Wait until all pending work is complete