[orchestrator] add priority calculation