I am completing the Jobs based on processInstancekey but whenever we are re-executing for other process instance key the active jobs are coming as zero but still I could see all the jobs are active in operate.
I am using the zeebeClient new complete command for completing the job.
steps which I following:
1.getting the activeJobs
2.checking the active job processInstance key with the input process instance key
3.if it’s equal then completing one job
if I do 2nd time the active jobs are coming 0.