I saw the following article yesterday and thought it had a number of good strategies to push ahead even when you may not be incredibly motivated by a task:

Kate Matsudaira, “How to Get Things Done When You Don’t Feel Like It,” ACM Queue, Vol. 16, No. 4, July-August 2018

There are so many factors that influence your ability to show up to work with enthusiasm and then work hard all day long, so it is important to come up with a strategy for getting work done even when you do not feel like it. For example, external events can take priority in your mind and make it hard to focus. And, of course, there are the struggles at work that can make it hard to feel motivated. For example, if you work really hard on a project and your manager does not seem to value it at all, you might wonder why you are working so hard. Other times you have to work on tasks you do not enjoy or projects that are not challenging. Many people turn to procrastination or ignoring the task, but that only postpones the inevitable. If you want to be successful, then it means learning how to push through challenges and deliver valuable results. (summary courtesy of ACM CareerNews)