Allow run only one action instance at once

1.4.1 2018-08-20 19:45 UTC


Yii2 widget

Latest Stable Version Total Downloads


Behavior allow deny multiple runs of same console application action (e.g. long time executing task initiated with cron).

Lock source should be chosen carefully noting following:

  • File source simple but can be used only with one docker container instance because its not possible determine if process still running or ended in another container. Requires only writable directory

  • Db source requires mysql connection. May be used only with single database instance.