After process is completed, I see that the lock file isn't deleted? Is there any reason that why flock keeps the file ? Also how does flock knows if there is a lock acquired ?
Here is the example from a crontab file
* * * * * flock python <script_name>.py