@donkeylabs/server 2.0.32 → 2.0.33

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.
package/docs/workflows.md CHANGED
@@ -98,14 +98,10 @@ const server = new AppServer({
98
98
  db,
99
99
  workflows: {
100
100
  concurrentWorkflows: 1, // default for all workflows (0 = unlimited)
101
- concurrentWorkflowsByName: {
102
- testWorkflow: 1,
103
- ingestionWorkflow: 1,
104
- },
105
101
  },
106
102
  });
107
103
 
108
- // Or per-register override
104
+ // Per-register override
109
105
  ctx.core.workflows.register(orderWorkflow, { maxConcurrent: 1 });
110
106
  ```
111
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkeylabs/server",
3
- "version": "2.0.32",
3
+ "version": "2.0.33",
4
4
  "type": "module",
5
5
  "description": "Type-safe plugin system for building RPC-style APIs with Bun",
6
6
  "main": "./src/index.ts",
@@ -768,8 +768,6 @@ export interface WorkflowsConfig {
768
768
  useWatchdog?: boolean;
769
769
  /** Default max concurrent instances per workflow name (0 = unlimited, default: 0) */
770
770
  concurrentWorkflows?: number;
771
- /** Per-workflow concurrency overrides */
772
- concurrentWorkflowsByName?: Record<string, number>;
773
771
  /** Resume strategy for orphaned workflows (default: "blocking") */
774
772
  resumeStrategy?: WorkflowResumeStrategy;
775
773
  }
@@ -878,7 +876,6 @@ class WorkflowsImpl implements Workflows {
878
876
  private sqlitePragmas?: SqlitePragmaConfig;
879
877
  private useWatchdog: boolean;
880
878
  private concurrentWorkflows: number;
881
- private concurrentWorkflowsByName: Record<string, number>;
882
879
  private workflowConcurrencyOverrides = new Map<string, number>();
883
880
  private resumeStrategy!: WorkflowResumeStrategy;
884
881
  private workflowModulePaths = new Map<string, string>();
@@ -918,7 +915,6 @@ class WorkflowsImpl implements Workflows {
918
915
  this.sqlitePragmas = config.sqlitePragmas;
919
916
  this.useWatchdog = config.useWatchdog ?? false;
920
917
  this.concurrentWorkflows = config.concurrentWorkflows ?? 0;
921
- this.concurrentWorkflowsByName = config.concurrentWorkflowsByName ?? {};
922
918
  this.resumeStrategy = config.resumeStrategy ?? "blocking";
923
919
  }
924
920
 
@@ -2021,9 +2017,6 @@ class WorkflowsImpl implements Workflows {
2021
2017
  if (this.workflowConcurrencyOverrides.has(workflowName)) {
2022
2018
  return this.workflowConcurrencyOverrides.get(workflowName) ?? 0;
2023
2019
  }
2024
- if (this.concurrentWorkflowsByName[workflowName] !== undefined) {
2025
- return this.concurrentWorkflowsByName[workflowName] ?? 0;
2026
- }
2027
2020
  return this.concurrentWorkflows;
2028
2021
  }
2029
2022