Current task lock will prevent cache collision. However, it only checks the collision when the task tries to access the cache file (i.e. task.dump(), task.load() and task.remove()). This will allow applications to run run() of same task at the same time, which is not efficient.
This new feature will prevent running run() at the same time for efficiency.
I've added feature of efficient task cache lock.
Current task lock will prevent cache collision. However, it only checks the collision when the task tries to access the cache file (i.e.
task.dump()
,task.load()
andtask.remove()
). This will allow applications to runrun()
of same task at the same time, which is not efficient.This new feature will prevent running
run()
at the same time for efficiency.Please review. @Hi-king @hirosassa @vaaaaanquish