#pragma once #include #include #include #include #include #include #include namespace vls::modules { // Produces the planned units in dependency order through the shared scheduler // at artifact priority. A superseded, cancelled, timed-out or failed unit // publishes nothing; the staging directory is always removed. [[nodiscard]] std::expected, std::string> produce_module_artifacts_scheduled(const ModulePlan &plan, ArtifactCache &cache, const std::filesystem::path &staging, ArtifactWork work, scheduler::Scheduler &scheduler, std::stop_token stop = std::stop_token{}); } // namespace vls::modules