added lockfile to scheduler to prevent doubling on unicorn production