If I set invalidateCache to True I get proper results back on 10.1.20.3. for all functions you’re calling. Leaving it as False returns the same behaviour because the local cache is empty/out of date.
I did make some little tweaks but it’s effectively your script:
from Deadline.Scripting import RepositoryUtils
def __main__(*args):
job_id = "62266f4da7d9b68468b47a7a"
jobs = RepositoryUtils.GetJobs(True)
print("RepositoryUtils.GetJobs(True)")
for foo in jobs:
print(foo)
jobs = RepositoryUtils.GetJobs([job_id], True)
print("RepositoryUtils.GetJobs([job_id], True)")
for foo in jobs:
print(foo)
job = RepositoryUtils.GetJob(job_id, True)
print("RepositoryUtils.GetJob(job_id, True)")
print(job) # job name is printed
What’s your Deadline version, maybe there’s some version-specific issue?