How to change the Priority settings in job processor

How to change the Priority settings in job processor

robincharly
Contributor Contributor
565 Views
4 Replies
Message 1 of 5

How to change the Priority settings in job processor

robincharly
Contributor
Contributor

Hai Team,

 

I implemented the vault professional in my customer end, Now they want to use the vault job processor & also want to change the job processor priority settings for the files they need to set priority, by using vault API.

 

Kindly guide me on this asap.

 

Thanks in advance.

0 Likes
566 Views
4 Replies
Replies (4)
Message 2 of 5

Nick_Hall
Collaborator
Collaborator

Hi

 

If the job is already in the queue, the only way to change the priority is to "get" the job, delete it, and re-add it with a different priority

 

You will need the JobService API Calls GetJobsByDate, DeleteJobById, and AddJob

 

Hope that helps

 

Nick

0 Likes
Message 3 of 5

jaco011
Advocate
Advocate

Hi, Do you know how to change the priority before it is in the queue?

0 Likes
Message 4 of 5

mateusz_baczewski
Advocate
Advocate

Hello,

As far as I remember, there's no such possibility. Unless you're adding a task to the queue using your own application/PowerShell, then you can modify it during the addition.

_vaultConn.WebServiceManager.JobService.AddJob("xxx.UpdateProperties", $"xxxx.UpdateProperties: {assemblyFile.File.Name}", jobParams, 1(priority));

 

Read:
Increase/decrease the priority of jobs of Vault job processor 

 

If you found it helpful, a "Like" would be much appreciated!
If this post solved your problem, please mark it as "Solution.".

0 Likes
Message 5 of 5

Nick_Hall
Collaborator
Collaborator

Hi

 

@mateusz_baczewski is correct.

 

But, according to the recent comments on this Idea from 2012 - https://forums.autodesk.com/t5/vault-ideas/job-queue-priority-settings/idi-p/3543728 - it looks like Autodesk has started looking into Job Queue management

 

You can contribute to the discussion if you join the Vault Beta program - there is a link in the discussion

 

Nick

0 Likes