add function to pull task for slot execution.