Suppressing boredom diminishes productivity and the likelihood of finding meaning at home, as well.
Guarding against the things I use to avoid boredom is the most effective way I've found of doing the things I'll feel good about later.
When I realized that the gervais principle was not a joke _at all_ I became a contractor, and I moved to 100% remote. This way I produce the output they expect while working on my own products. Best of both worlds and everyone is happy.
Of course this only works if you really do have enough non-boring tasks that there's always one available to switch to, and if the boring tasks aren't so boring that you get bored with them before making enough progress.
If you work remotely, a good cure for boredom is working 2+ jobs with minimal responsibilities or expectations. Spinning plates, keeping a mediocre output for keeping the job, is a great wealth and boredom fix.