@Zainab Imran
What is the use case for needing the S2SStatusReportingTask to run on Primary node only?
By having it run on only one node, you will not see be seeing status of any other node. Each node only reports out the component status for that specific node.
While it is possible to filter out messages via flow design (routeOnContent for example), I would not recommend doing so. The elected primary node in your cluster can change at anytime.
-
Thank you,
Matt