google-drive-upload icon indicating copy to clipboard operation
google-drive-upload copied to clipboard

[BUG] Implementing lock files for common files shared over multiple instances of script

Open Akianonymus opened this issue 4 years ago • 0 comments

When there are multiple instances of script running, then there can be a situation of conflict and the config can get messed up when both instances are simultaneously writing to same config file (although the chances are quite rare).

Similarly for other files.

This can be avoided by creating lockfiles and check them before writing to check if the config is currently being written.

Akianonymus avatar Jun 14 '21 11:06 Akianonymus