JobService.AddScheduledJob - Access from the UI

JobService.AddScheduledJob - Access from the UI

m_baczewski
Advocate Advocate
717 Views
2 Replies
Message 1 of 3

JobService.AddScheduledJob - Access from the UI

m_baczewski
Advocate
Advocate

Hi,

 

I have created a custom job processor task in Vault. I would like this task to be executed periodically - once a day. I am adding a scheduled task using JobService.AddScheduledJob. Is it possible to add/remove such a scheduled task from the Vault UI? When I try to manually remove this task from the job queue, it returns after the time interval I set as the task's execution frequency.

 

For testing purposes, I set the task frequency to 1 minute. I am adding the task in the following way:

 

vaultConnection.WebServiceManager.JobService.AddScheduledJob(
                    iLogicJobTypeName, String.Format($"Aktualizacja Content Center: {iLogicJobTypeName}"),
                    mParamList, 10, DateTime.Now, 1);

 

0 Likes
Accepted solutions (1)
718 Views
2 Replies
Replies (2)
Message 2 of 3

Markus.Koechl
Autodesk
Autodesk
Accepted solution

Setting the execution frequency for once a day, 1440 minutes, will work. There is no UI to remove the server job; you can review it in the ADMS server tasks. I shared a sample to access these server jobs via UI as part of the VDS-PDMC-Sample. You can find it here: VDS-Sample-Configurations-2025/VDS-PDMC-Sample-Vault/Vault.Custom/addinVault/Menus/ADSK.QS.ActivateS.... The dialog and code behind are: VDS-Sample-Configurations-2025/VDS-PDMC-Sample-Vault/Vault.Custom/addinVault/Menus/ADSK.QS.ActivateS...VDS-Sample-Configurations-2025/VDS-PDMC-Sample-Vault/Vault.Custom/Configuration/ADSK.QS.ActivateSche....

I hope this helps.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 3

m_baczewski
Advocate
Advocate

Thanks for the information. In that case, I’ll create a small application or an extension for Vault to be able to add/remove such tasks. Nevertheless, thanks for the examples 🙂

0 Likes