Parallel Imports
To avoid unwanted behaviour, only one import process can be started at a time.
To ensure that only one process is running, a PID file in the temporary system directory
(sys_get_temp_dir()
)
is created, which contains the UUID of the actual import process.
After the import process has been finished, the file will be removed, and a new process can start.