The following task releases task fixes the issue where a database can't be dropped because it is already been used by another process e.g. There are 1 other session(s) using the database. : DROP DATABASE IF EXISTS "test_db". This task removes the process locks from the database that blocks the db from being dropped