Render multiple sequences using python

Hi
I am building a python script for rendering multiple sequences one after another using unreal.SequencerTools.render_movie. The editor throws an error stating capture is already in progress. How to render the sequences synchronously one at a time.
Any help would be appreciated.
Thanks

Error message:
LogPython: Error: unreal.SequencerTools.render_movie(capture_settings, on_finished_callback)
LogPython: Error: RuntimeError: SequencerTools: Capture already in progress.

are you solve it? the same to me

I’m doing something similar, but I used unreal.MoviePipelineQueue instead. You build the queue and then let it run. The only drawback is that you can’t have edits to the level/sequence happen between render jobs.