Hi,
i have a workspace on fme server and i want to start it from a python script. This scripts is not located on the fme server. Can this be done?
greetings, Hans
Hi,
i have a workspace on fme server and i want to start it from a python script. This scripts is not located on the fme server. Can this be done?
greetings, Hans
Hi @fme_hans,
Why do you want a Python script to start a workspace on FME Sever instead of using a Schedule or, even better, an Automation (former Notification)?
Kind regards,
Krien
I agree with Krien. You can also use the FME Server REST interface: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html or generate a webhook: https://knowledge.safe.com/topics/webhooks.html
Hi @stalknecht, @fme_hans,
I agree with your addition, but the use of the FME Rest Interface can be a bit complicated for some people and I don't know the level of fme_hans.
Greets,
Krien
Hi @fme_hans,
Why do you want a Python script to start a workspace on FME Sever instead of using a Schedule or, even better, an Automation (former Notification)?
Kind regards,
Krien
Beacause it must run every 5 minutes and the one who maintains the fme server does not like that
Beacause it must run every 5 minutes and the one who maintains the fme server does not like that
Oh no, never ignore the FME server administrator! If you start a job each 5 minutes that will last more then 5 minutes then an extra job is added to the queue. Depending on the number of engines and the current load of the server other (IMPORTANT) jobs can't run anymore. And the queue wil grow and grow.....
Reading the responses it looks like you want to run a workbench every 5 minutes but you can't do it through FME Server due to restrictions.
Either;
or