Making sure /tmp/pids exists for the ITA query task, and adjusting the task to not run again if it's already running.