Duplicate Process Definition

I am adding 1 more question here.
I am having Heterogeneous Cluster setup. Now I deployed some process applications through modeler. So the process engine will maintain in memory about new deployments.
But If I am restarting my node. I will not able to identify which all deployments have been pushed through this node as this information doesn’t persist anywhere.
If I am trying to do something like repositoryService.createProcessDefinitionQuery().list();
It will give me whole processDefinitions related information as database is same.
So How can I identify which all deployments was linked to this node?

This is important as jobExecutor only pick deployment Id related job when application setup is deployment-aware.