Jump to content

CPU Priority Variable Switcher


Recommended Posts

Im trying to create a python script with cpu priority switcher using the following:

ThisService.Priority = int(ThisService.Variables["CPUPriority"]);

ThisService.Save()
ThisService.Configure()

 

Its not working by switching cpu priority in tcadmin for some reason.

Variable Options in CPUPriority are:

  • Normal
  • AboveNormal
  • High

 

The variable of priority is taken from:

https://docs.tcadmin.com/customizations/scripts/script-objects/this-service/#properties

 

Advice would be appreciated

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 39 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use