Open abhi3700 opened 1 month ago
I think I can protect this by having Mutex
for a local data type.
And in case of using a DB (with drivers normally having states as Mutex
type), I need to maintain a field there that locks when something is running inside a Job & then release lock (& thereby change the state) when done.
Suppose, a job takes longer time than usual & then the next thread opens for the new job. In this situation there could be an overlapping. I want to avoid this to happen.
A situation like this:
Is there a property available to set in a job such that it disallow overlapping of the 2 jobs?
Expecting a code like this: