Пример #1
0
    def poll_panda_task(self, processing):
        if 'panda_task_id' in processing['processing_metadata']:
            from pandatools import Client

            status, task_status = Client.getTaskStatus(processing.workload_id)
            if status == 0:
                return task_status
        else:
            return 'failed'
        return None
Пример #2
0
        print(job_info.Files)
        print(job_info.Files[0])
        for f in job_info.Files:
            # print(dir(f))
            print(f._attributes)
            print(f.values())
            print(f.type)

jediTaskID = 3885
ret = Client.getJediTaskDetails({'jediTaskID': jediTaskID},
                                True,
                                True,
                                verbose=False)
print(ret)

ret = Client.getTaskStatus(jediTaskID, verbose=False)
print(ret)
"""
sys.exit(0)

jediTaskID = 998
ret = Client.getPandaIDsWithTaskID(jediTaskID, verbose=False)
# print(ret)
jobids = ret[1]
# print(jobids)

ret = Client.getJobStatus(ids=jobids, verbose=False)
print(ret)

ret = Client.getFullJobStatus(ids=jobids, verbose=False)
# print(ret)