You can set the priority of the scheduled job via the Web UI under advanced, is that what you mean?
If you have a published parameter called tm_priority that contains the desired priority, I believe this will be used at run-time. At least, that's what the docs appear to be trying to say (they could be clearer).
https://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/Transformation_Manager_Directives.htm
If you have a published parameter called tm_priority that contains the desired priority, I believe this will be used at run-time. At least, that's what the docs appear to be trying to say (they could be clearer).
https://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/Transformation_Manager_Directives.htm
The tm_priority tag can be used when triggering the ws via an HTTP call to the server by adding it to the call so for example this (&tm;_priority=10) added to the call will set a priority of 10.
Yes use tm_priority. As itay says, it has to be part of the http call. So you may need to create a public parameter called tm_priority (maybe alias type so you say high priority = 10, low =200). That parameter won't do anything in the workbench itself but when you run the process it will pass &tm;_priority=10 etc in the http call.
In your case if you always want to to be 50. Just create a choice parameter (as public). Call it tm_priority and set the choice and default value as 50. Its ugly how users always see it, but if you make it a private parameter, it won't pass correctly.
Unfortunately, no, you cannot set a default priority for a workspace. You will have to specify the priority each time the workspace is executed (web interface, scheduler, API, etc).
This is a great idea and I would encourage you to add an entry to our Ideas exchange so that others can contribute to it and vote it up!
https://knowledge.safe.com/content/idea/list.html
Yes use tm_priority. As itay says, it has to be part of the http call. So you may need to create a public parameter called tm_priority (maybe alias type so you say high priority = 10, low =200). That parameter won't do anything in the workbench itself but when you run the process it will pass &tm;_priority=10 etc in the http call.
In your case if you always want to to be 50. Just create a choice parameter (as public). Call it tm_priority and set the choice and default value as 50. Its ugly how users always see it, but if you make it a private parameter, it won't pass correctly.
todd_davis,
Thank you very much for your reply.
If I make it private, it also works for me with FME Server 2016.
This is a great idea and I would encourage you to add an entry to our Ideas exchange so that others can contribute to it and vote it up!
https://knowledge.safe.com/content/idea/list.html
I agree. And also being able to set default tags, timeout, notifications etc would be great.
Unfortunately, no, you cannot set a default priority for a workspace. You will have to specify the priority each time the workspace is executed (web interface, scheduler, API, etc).
david_r,
Thank you for your answer. The workaround jonathan proposed worked fine for adding a default priority.
You can set the priority of the scheduled job via the Web UI under advanced, is that what you mean?
itay,
Thank you for answering. In this way I learned you can assign a priority to a scheduled job. I wanted to assign a priority to a job while uploading a workspace to FME Server. This is possible by creating a published or private parameter "tm_priority" as jonathan proposed.
david_r,
Thank you for your answer. The workaround jonathan proposed worked fine for adding a default priority.
verdoodtdries, do you know if this workaround works in fme server 2015? I tryied but it doesn't seem to work...
verdoodtdries, do you know if this workaround works in fme server 2015? I tryied but it doesn't seem to work...
lau
I only tested it in FME Server 2016, so I cannot confirm for FME Server 2015.
Yes use tm_priority. As itay says, it has to be part of the http call. So you may need to create a public parameter called tm_priority (maybe alias type so you say high priority = 10, low =200). That parameter won't do anything in the workbench itself but when you run the process it will pass &tm;_priority=10 etc in the http call.
In your case if you always want to to be 50. Just create a choice parameter (as public). Call it tm_priority and set the choice and default value as 50. Its ugly how users always see it, but if you make it a private parameter, it won't pass correctly.
Has any of you succeeded using this workaround with FME Server 2017?