We have a system that automatically submits jobs to muster with the API. We use the python script.
We noticed that it takes longer to communicate when we have a lot of jobs in the queu. I assume it is the same when you login on the console, it has to read all the jobs and logs.
As we have a lot of jobs (thousands) it is taking longer and longer to submit them.
Now each job is submitted separate to muster, so each time it has to read all the jobs and logs.
I there a way to let it stay connected instead of retrieving the complete job list each time?
you are calling your function CheckNameFolder that in turns downloads all the jobs, that’s why your script is slow. You may consider a different way to submit the job without checking if that folder exists, maybe doing the check in a separate script that you launch just once.