Skip to content

@eightkk/vue-weave / core / scheduleTasks

Function: scheduleTasks() ​

Call Signature ​

scheduleTasks(input, options?): ScheduleResult

Defined in: src/core/scheduling.ts:154

Calculate earliest and latest feasible dates without changing the supplied plan. With { explain: true }, a successful result also has a trace of why each task got its dates; the dates themselves do not change.

A task with manual dates keeps them in every pass; links into it bind nothing (they still count for cycles), and each one its dates violate is listed in manualConflicts. A manual task that ends after the deadline makes the plan infeasible. An inactive task, its links and its result entry are left out.

Tasks with a parentId form a summary hierarchy: a summary task's dates roll up from its subtasks, a link into it binds the start of every subtask, and a link from it uses its rolled-up dates.

Parameters ​

input ​

ScheduleInput

options? ​

ScheduleOptions & object

Returns ​

ScheduleResult

Call Signature ​

scheduleTasks(input, options): ExplainedScheduleResult

Defined in: src/core/scheduling.ts:155

Calculate earliest and latest feasible dates without changing the supplied plan. With { explain: true }, a successful result also has a trace of why each task got its dates; the dates themselves do not change.

A task with manual dates keeps them in every pass; links into it bind nothing (they still count for cycles), and each one its dates violate is listed in manualConflicts. A manual task that ends after the deadline makes the plan infeasible. An inactive task, its links and its result entry are left out.

Tasks with a parentId form a summary hierarchy: a summary task's dates roll up from its subtasks, a link into it binds the start of every subtask, and a link from it uses its rolled-up dates.

Parameters ​

input ​

ScheduleInput

options ​

ScheduleOptions & object

Returns ​

ExplainedScheduleResult

Call Signature ​

scheduleTasks(input, options?): { code: "cycle"; cycles: readonly ScheduleCycle[]; ok: false; } | { code: "infeasible"; constraints: readonly ScheduleConstraintName[]; dependencyIds: readonly string[]; ok: false; taskId: string; } | ScheduleSuccess | ExplainedScheduleSuccess

Defined in: src/core/scheduling.ts:156

Calculate earliest and latest feasible dates without changing the supplied plan. With { explain: true }, a successful result also has a trace of why each task got its dates; the dates themselves do not change.

A task with manual dates keeps them in every pass; links into it bind nothing (they still count for cycles), and each one its dates violate is listed in manualConflicts. A manual task that ends after the deadline makes the plan infeasible. An inactive task, its links and its result entry are left out.

Tasks with a parentId form a summary hierarchy: a summary task's dates roll up from its subtasks, a link into it binds the start of every subtask, and a link from it uses its rolled-up dates.

Parameters ​

input ​

ScheduleInput

options? ​

ScheduleOptions

Returns ​

Type Literal ​

{ code: "cycle"; cycles: readonly ScheduleCycle[]; ok: false; }


Type Literal ​

{ code: "infeasible"; constraints: readonly ScheduleConstraintName[]; dependencyIds: readonly string[]; ok: false; taskId: string; }

code ​

code: "infeasible"

constraints ​

constraints: readonly ScheduleConstraintName[]

Binding bounds of the task that conflict, in a fixed order.

dependencyIds ​

dependencyIds: readonly string[]

Binding dependencies of the task that conflict, in input order.

ok ​

ok: false

taskId ​

taskId: string


ScheduleSuccess


ExplainedScheduleSuccess

Released under the MIT License.