async fn queue_leaf_jobs(&self, connection: &mut Connection<'_, Prover>) {
        let l1_batch_numbers = connection
            .fri_leaf_witness_generator_dal()
            .move_leaf_aggregation_jobs_from_waiting_to_queued()
            .await;
        let len = l1_batch_numbers.len();
        for (l1_batch_number, circuit_id) in l1_batch_numbers {
            tracing::info!(
                "Marked leaf job for l1_batch {} and circuit_id {} as queued.",
                l1_batch_number,
                circuit_id
            );
        }

        SERVER_METRICS
            .leaf_fri_witness_generator_waiting_to_queued_jobs_transitions
            .inc_by(len as u64);
    }
Marks leaf witness jobs as queued.
The trigger condition is all prover jobs on round 0 for a given circuit, per batch, have been completed.
prover/crates/bin/prover_job_monitor/src/witness_job_queuer.rs