This might sound weird. I have a scene with alembic files. There are chunks in the timeline which do not need to be rendered. For example in a 200 frames timeline I want to skip say 20-51 and then 110-167. I cannot do this manually as I will be leaving my PC to render overnight and to save the render time I do not want to render the redundant parts. Is there a way to setup the file so that I render the parts I want from the timeline?
This addon called Loom is exactly what you need.
It allows you to specify ranges and specific frames that you want to render or skip. It's even possible to render every nth frame.
The addon allows to render single frames, multiple frame ranges as well as subframes, either directly within Blender's UI (as usual) or in a new terminal instance as background process in case you want to continue working while rendering.
One workaround could be to animate the collection/scene visibility so in the frames you don't need the render, you set up everything to be not rendered (you'll get black images).
You'll have a very quick render for empty black frames.
Here's a reference: https://stackoverflow.com/a/17260936
You could do it with a few for loops if you're familiar with that as shown here: Python Render Specific Frames