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.
Pythonic way to get information on a job/task.
Re: Pythonic way to get information on a job/task.
Hi!
It is not documented, yet, sorry.
See this:
https://github.com/CGRU/cgru/blob/maste ... n/afcmd.py
You can use Python to send JSON objects:
https://cgru.readthedocs.io/en/latest/a ... i.html#get
It is not documented, yet, sorry.
See this:
https://github.com/CGRU/cgru/blob/maste ... n/afcmd.py
You can use Python to send JSON objects:
https://cgru.readthedocs.io/en/latest/a ... i.html#get
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Pythonic way to get information on a job/task.
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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Pythonic way to get information on a job/task.
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.
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.
No.
GUIs calculate it manually, according to percentage and elapsed time.
GUIs calculate it manually, according to percentage and elapsed time.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).