@@ -433,9 +433,10 @@ auto MySqlMetadataStorage::add_job(
433433 add_task (static_cast <MySqlConnection&>(conn), job_id_bytes, *task, TaskState::Ready);
434434 for (boost::uuids::uuid const id : task_graph.get_child_tasks (task_id)) {
435435 std::vector<boost::uuids::uuid> const parents = task_graph.get_parent_tasks (id);
436- if (std::ranges::all_of (parents, [&](boost::uuids::uuid const & parent) {
437- return heads.contains (parent);
438- }))
436+ if (std::ranges::all_of (
437+ parents,
438+ [&](boost::uuids::uuid const & parent) { return heads.contains (parent); }
439+ ))
439440 {
440441 queue.push_back (id);
441442 }
@@ -456,9 +457,12 @@ auto MySqlMetadataStorage::add_job(
456457 add_task (static_cast <MySqlConnection&>(conn), job_id_bytes, *task, std::nullopt );
457458 for (boost::uuids::uuid const id : task_graph.get_child_tasks (task_id)) {
458459 std::vector<boost::uuids::uuid> const parents = task_graph.get_parent_tasks (id);
459- if (std::ranges::all_of (parents, [&](boost::uuids::uuid const & parent) {
460- return heads.contains (parent);
461- }))
460+ if (std::ranges::all_of (
461+ parents,
462+ [&](boost::uuids::uuid const & parent) {
463+ return heads.contains (parent);
464+ }
465+ ))
462466 {
463467 queue.push_back (id);
464468 }
@@ -561,9 +565,10 @@ auto MySqlMetadataStorage::add_job_batch(
561565 );
562566 for (boost::uuids::uuid const id : task_graph.get_child_tasks (task_id)) {
563567 std::vector<boost::uuids::uuid> const parents = task_graph.get_parent_tasks (id);
564- if (std::ranges::all_of (parents, [&](boost::uuids::uuid const & parent) {
565- return heads.contains (parent);
566- }))
568+ if (std::ranges::all_of (
569+ parents,
570+ [&](boost::uuids::uuid const & parent) { return heads.contains (parent); }
571+ ))
567572 {
568573 queue.push_back (id);
569574 }
@@ -589,9 +594,12 @@ auto MySqlMetadataStorage::add_job_batch(
589594 );
590595 for (boost::uuids::uuid const id : task_graph.get_child_tasks (task_id)) {
591596 std::vector<boost::uuids::uuid> const parents = task_graph.get_parent_tasks (id);
592- if (std::ranges::all_of (parents, [&](boost::uuids::uuid const & parent) {
593- return heads.contains (parent);
594- }))
597+ if (std::ranges::all_of (
598+ parents,
599+ [&](boost::uuids::uuid const & parent) {
600+ return heads.contains (parent);
601+ }
602+ ))
595603 {
596604 queue.push_back (id);
597605 }
0 commit comments