Add logic to better time and schedule tasks; Retries are now down on worker nodes; Added locking logic to scheduler;