When you are blocked in a task, you don’t have any other choice other than fixing it and moving ahead, or completely abandoning it. If you ignore the task you won’t be learning anything new, but forcing yourself to complete it and move ahead will help you in learning many things. It will increase the confidence of completing the hard tasks in the future as well.