Retrieves a task by ID.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
ID of the task to retrieve.