...
seems like a good approach to make the pipeline run imaging in the HTC environment
https://htmap.readthedocs.io/en/latest/
HTMap is a library that wraps the process of mapping Python function calls out to an HTCondor pool. It provides tools for submitting, managing, and processing the output of arbitrary functions.