In the work method, we should include our work logic. Here we will execute the task. It is recommended to include all the necessary information in the task input parameter so that the worker can perform its logic. It is necessary for worker methods to pass and receive the task object in order to function.