Unable to create machine- and task-based limits in Deadline 10.3

I am trying to create a machine-based license limit in Deadline but I get this error message:

2024-08-12 13:56:38: Traceback (most recent call last):
2024-08-12 13:56:38: File “C:\thinkbox-conda\conda-bld\deadline_1710521802267\work\DeadlineProject\DeadlineUI\Commands\LimitGroupCommands.py”, line 98, in InnerExecute
2024-08-12 13:56:38: TypeError: since Python.NET 3.0 int can not be converted to Enum implicitly. Use Enum(int_value)

This only occurs when I select Usage Level: Machine or Usage Level: Task, and it occurs for both license and resource limits. I am able to create worker-based limits, however.

Please help. Thanks.

If you upgrade to the latest 10.3.2.1 that bug in the Monitor is fixed.

I’ve just updated to 10.3.2.1 and this issue is still there :frowning:
And like the OP says: just with Task and Machine level; Worker usage level works

Noted! I know we fixed similar issues with int can not be converted to Enum implicitly from other dropdowns in the Monitor.

Has this been fixed, same issue here

as this wasn’t fixed in 10.3 (10.4 is fine) is there any other way how to setup machine limit using python api, deadlinecommand or webservice? Or other workaround/hack?

Hey, I know it’s been quite some time, but just thought I’d update this thread with a workaround that I found to be helpful.

You can use deadlinecommand to export the limits to a text file, make the desired changes, and then re-import them.

Example (on Linux):

STEP 1 - EXPORT

In a terminal, run the following:

/opt/Thinkbox/Deadline10/bin/deadlinecommand ExportRepositorySettings -Settings Limits -ExportFilePath <filename.txt>

STEP 2 - EDIT THE FILE

Open the file you just created and look at the existing entries for clues on how to format a new entry for the limit you wish to create. Once you have added your new limit, save the file.

More info on formatting the file can be found here:
https://docs.thinkboxsoftware.com/products/deadline/10.1/1_User%20Manual/manual/repository-settings-importer-exporter.html

STEP 3 - IMPORT THE MODIFIED FILE

/opt/Thinkbox/Deadline10/bin/deadlinecommand ImportRepositorySettings -ImportFilePath <filename.txt> -ImportOperation Replace

(Note: you may wish to run the above command with ‘-ImportOperation ReplaceDryRun’ first to test things out)