Page 1 of 1
Pythonic way to get information on a job/task.
Posted: Sat Sep 05, 2020 3:25 am
by giel_4321
How can I retrieve information on job or a task using python.
For example like current progress, how many tasks the job have, name of artist etc.
Re: Pythonic way to get information on a job/task.
Posted: Sat Sep 05, 2020 12:44 pm
by timurhai
Re: Pythonic way to get information on a job/task.
Posted: Sun Sep 06, 2020 9:34 am
by giel_4321
Thanks Timur, found the way to get info about job.But i would also like to know how can i set job priority with job id.
Re: Pythonic way to get information on a job/task.
Posted: Sun Sep 06, 2020 10:05 am
by timurhai
Re: Pythonic way to get information on a job/task.
Posted: Sun Sep 06, 2020 10:59 am
by giel_4321
Thanks again
Code: Select all
def setPrioritybyId(self,jobId, priority, verbose=False):
"""Missing DocString
:param jobId:
:param str params:
:param bool verbose:
:return:
"""
self.action = 'action'
self.data['type'] = 'jobs'
self.data['ids'] = [jobId]
self.data['params'] = {'priority': priority}
return self._sendRequest(verbose)
Re: Pythonic way to get information on a job/task.
Posted: Mon Sep 07, 2020 11:27 am
by giel_4321
Is there any function i can call to get ETA or is there any equation?
Re: Pythonic way to get information on a job/task.
Posted: Mon Sep 07, 2020 11:31 am
by timurhai
No.
GUIs calculate it manually, according to percentage and elapsed time.