sandbox/ivideon/puml/MaaS/2.wsd
2025-08-25 11:33:36 +03:00

17 lines
651 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@startuml
title Планировщик: генерация задач (activity)
start
:cron/loop\nscheduler/__main__.py;
:task_generator.run();
:Загрузка чек-листов\nс расписанием и источниками;
:Для каждого источника (facility)\nвзять last_mark;
:calc_allowed_interval(schedule_mark,\nnow, schedule, tz);
if ("Есть интервал\nи он завершился?") then (Да)
:Создать REVIEW_TASK\n(snapshot checklist + facility);
:Обновить метку в чек-листе\n_marks[facility_id] = now;
else (Нет)
:Пропустить;
endif
stop
@enduml