Unable to acquire lock error

Errors like the following:

Unable to acquire lock on session with ID 84333844-66e3-4846-a664-b446d070f775

This error suggests that a user did not clealy kill a previous Nextflow run in the same launch directory.

To fix this, delete the workDir, which is called work by default.

Warning

ctrl + z is not a recommended way of killing a Nextflow job. Runs that take a long time to fail are often still running because other job submissions are still running. Nextflow will normally wait for those processes to complete before cleaning shutting down the run (to allow rerunning of a run with -resume). ctrl + c is much safer as it will tell Nextflow to stop earlier but cleanly.