docs(tasks): clarify admission lifecycle
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = () => {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user