Skip to main content
Solved

Can you assign a priority when publishing a workspace to FME Server?


verdoodtdries
Supporter
Forum|alt.badge.img+19

Hello FME-community,

I want to upload a workspace to FME Server and ensure this workspace always runs with a default priority of 50.

Is there a way to set the default priority when publishing the workspace to FME Server?

OR

Can you change the default priority of workspaces once they are published at FME Server?

 

I know you can assign a priority when launching a workspace by the FMEServerJobSubmitter transformer, but this is not my intention in this case.

Best answer by david_r

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).

View original
Did this help you find an answer to your question?

13 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • February 22, 2017

You can set the priority of the scheduled job via the Web UI under advanced, is that what you mean?


Forum|alt.badge.img
  • February 22, 2017

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


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • February 22, 2017
jonathan wrote:

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.

 


todd_davis
Influencer
Forum|alt.badge.img+22
  • Influencer
  • February 23, 2017

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.


david_r
Celebrity
  • Best Answer
  • February 23, 2017

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).


fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • February 23, 2017

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


verdoodtdries
Supporter
Forum|alt.badge.img+19
  • Author
  • Supporter
  • February 23, 2017
todd_davis wrote:

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.

 

 


david_r
Celebrity
  • February 23, 2017
fmelizard wrote:

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.

 

 


verdoodtdries
Supporter
Forum|alt.badge.img+19
  • Author
  • Supporter
  • February 23, 2017
david_r wrote:

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.

 


verdoodtdries
Supporter
Forum|alt.badge.img+19
  • Author
  • Supporter
  • February 23, 2017
itay wrote:

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.

 

 

 


lau
Forum|alt.badge.img+3
  • April 19, 2017
verdoodtdries wrote:
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
Supporter
Forum|alt.badge.img+19
  • Author
  • Supporter
  • April 19, 2017
lau wrote:
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.

 


Forum|alt.badge.img
  • June 8, 2017
todd_davis wrote:

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?

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings