docs(tasks): clarify admission lifecycle

This commit is contained in:
pku-xht
2026-08-11 23:13:35 +08:00
parent e3ac9e85e5
commit 38922cbbb9
14 changed files with 34 additions and 19 deletions

View File

@@ -29,7 +29,10 @@ const DEFAULT_MAX_CONCURRENT_TASKS_PER_OWNER = 10
/** Configuration for the process-local task registry. */
export interface Config {
/** Maximum `running` plus `stopping` tasks per exact owner; omission defaults to 10. */
/**
* Maximum `running` plus `stopping` tasks per exact owner or in the shared unowned bucket;
* omission defaults to 10.
*/
maxConcurrentTasksPerOwner?: number
}

View File

@@ -15,8 +15,10 @@ export const name = 'tasks-local-invariant'
export const inject = ['invariants']
/**
* No runtime invariant: the Service Definition companion in `@deepseek-ai/dsh-tasks` already
* validates every registry snapshot this implementation publishes.
* No runtime invariant: the Service Definition companion in `@deepseek-ai/dsh-tasks` validates
* every published snapshot. `LocalTaskService.start()` enforces this provider's configured
* admission limit synchronously before producer execution; repeating that aggregate check here
* would expose provider-private configuration solely to this companion.
*/
const install: InvariantInstaller = () => {}