Create filelock when Task is started + try to run the tasks before starting the scheduler.