How to synchronize between task sequence and uvm end of test?

In reply to UVM_LOVE:

Without seeing the entire testbench, it’s difficult to provide an accurate assessment.

Your pipelined driver seems strange, with two of the same task running in parallel. Have you looked at the UVM Cookbook section on pipelined drivers?