Hi,
How can change the priority of a certain job using python modules like af or afcmd.
Like I can change the state of the job but couldn't find any settings like priority or hostmask.
Also, I want to clarify that I want to change the setting of the running job not while creating a job.
Thanks
Change Job Priority from Python
Re: Change Job Priority from Python
Hi!
You can use JSON protocol for almost anything.
Try to change something from WebGUI or AfWatch (running in terminal) and you will see what data it sends to server.
From Python you can use
https://github.com/CGRU/cgru/blob/maste ... ork.py#L21
afnetwork.sendServer
function to send JSON data.
You can use JSON protocol for almost anything.
Try to change something from WebGUI or AfWatch (running in terminal) and you will see what data it sends to server.
From Python you can use
https://github.com/CGRU/cgru/blob/maste ... ork.py#L21
afnetwork.sendServer
function to send JSON data.
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: Change Job Priority from Python
Hi Timur,
Yeah, I managed to achieve the same while looking at the af.Cmd
I made custom methods for all the desired operations.
Thanks!
Yeah, I managed to achieve the same while looking at the af.Cmd
I made custom methods for all the desired operations.
Thanks!