Does anyone know how to add a job with the decorator, when the job is in another python file? Python file I need as a job contain a simple run
if __name__ == "__main__":
d
Daniel Gafni
08/28/2023, 12:45 PM
I believe the simplest thing is to use subprocess.run
r
Rene Czepluch
08/28/2023, 12:47 PM
I see. Thanks for the tip
m
Matt Clarke
08/28/2023, 1:53 PM
Worth noting that you run into the whole separate threads versus processes thing with that. If feasible, it might be worth moving the contents of main out in to a function and calling that in the entry point block.