onAutoScheduleNoConverge
信息
此功能仅在 PRO 版本中可用。
Description
当自动调度无法收敛到稳定结果时触发
onAutoScheduleNoConverge: (result: object) => void;
Parameters
result- (必需) object - 调度运行的详细信息,包括执行的iterations次数以及收集的conflicts列表。
Example
gantt.attachEvent("onAutoScheduleNoConverge", function(result){
console.warn("Auto scheduling did not converge", result.conflicts);
});
Related samples
Details
注释
该事件在 auto_scheduling 扩展中定义,因此你需要启用 auto_scheduling 插件 。有关详细信息,请参阅 自动调度 文章。
自动调度将任务放入重复的传递中,直到结果不再变化。此事件在结果持续变化且在若干次传递后未达到稳定状态时触发。实际情况通常指向一个约束过于严格的项目,例如一组约束和依赖关系不能同时全部被满足。
result 参数包含运行的详细信息:
iterations- number - 进行了多少次传递。converged- boolean - 在此事件中为false。conflicts- array - 调度过程中收集的冲突(请参阅 onAutoScheduleConflict 了解冲突字段)。
Related API
- auto_scheduling
- auto_scheduling_move_projects
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onAutoScheduleCircularLink
- onAutoScheduleConflict
Related Guides
Change log
- 于 10.0 版本新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.