Skip to content

Commit 0662907

Browse files
committed
chore: codefmt
1 parent 6132b93 commit 0662907

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/query/management/src/task/task_mgr.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,15 @@ impl TaskMgr {
424424
/// - `Vec<String>`: A list of dependent task names that are ready to proceed.
425425
///
426426
/// # Behavior
427-
/// 1. Retrieves all tasks that must be executed *before* the given `task_name`.
428-
/// 2. For each such task, find the tasks that depend on it (`after` tasks).
429-
/// 3. For each `after` task:
430-
/// - If all its dependencies (excluding the current task) are succeeded:
431-
/// - Mark that task as **not succeeded**.
432-
/// - Also mark the current task as succeeded.
433-
/// - Record it as ready for further processing.
427+
/// 1. Retrieves all tasks that the given `task_name` is a dependency of (i.e., tasks that depend on `task_name`).
428+
/// 2. For each such dependent task:
429+
/// - Check whether all its dependencies (excluding `task_name`) have succeeded.
430+
/// - If so:
431+
/// - Mark that task as **not succeeded** to trigger reevaluation or blocking.
432+
/// - Mark `task_name` as succeeded.
433+
/// - Add the task to the ready list for further processing.
434434
/// - Otherwise:
435-
/// - Still mark the current task as succeeded.
435+
/// - Still mark `task_name` as succeeded.
436436
#[async_backtrace::framed]
437437
#[fastrace::trace]
438438
pub async fn get_next_ready_tasks(

0 commit comments

Comments
 (0)