Skip to main content
Solved

FME Server Schedules for Week Day Only

  • November 7, 2016
  • 5 replies
  • 335 views

I have a scheduled script in FME Server that has to run every half hour during week days. However, I have to schedule it to run every half hour for 24 hours a day for every day in FME Server 2015, so that it runs at night and on weekends when it doesn't have to. Are there any plans to improve the granularity of the schedule in a future FME Server version?

Best answer by fmelizard

FME Server uses the quartz scheduler.

This website can help you create cron statements for the quartz scheduler and thus FME Server:

http://www.cronmaker.com/

Here is an entry on the Ideas exchange for improving the scheduler.

https://knowledge.safe.com/idea/32771/improve-fme-server-schedules-dashboard-layout.html

It would be great if you added your requirements there so that we can make the best improvement for the most people.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • November 7, 2016

Hi @jimo That is something that someone from Safe can probably answer, I find the option to use a cron expressions very handy.

https://docs.safe.com/fme/html/FME_Server_Documentation/Content/WebUI/Adding_a_Scheduled_Task.htm


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • November 7, 2016

Using a CRON job is the way you can set up flexible schedules.

This website expains the settings:

https://code.tutsplus.com/tutorials/scheduling-tasks-with-cron-jobs--net-8800


  • 0 replies
  • November 7, 2016

Using a CRON job is the way you can set up flexible schedules.

This website expains the settings:

https://code.tutsplus.com/tutorials/scheduling-tasks-with-cron-jobs--net-8800

There is some discrepancy between the tutsplus documentation and the FME Server documentation. The former has five required fields, the latter six. Also, I am wondering if this command will work on a Windows FME Server.

 

 

This command should run every half hour between 4:00 AM and 7:00 PM, Monday thru Friday, as I understand it the syntax:

 

 

* 29,59 4-19 * * 2-6 "C:\\ProgramData\\Safe Software\\FME Server\\Server\\repository\\MY_REPOSITORY_NAME\\MY_FME_SCRIPT\\MY_FME_SCRIPT.fmw"

 

 

But no matter what variation I try it I get "The CRON expression syntax is not valid". Perhaps some guru from the FME team can elucidate?

 

 

Thanks

 

 


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • November 7, 2016
There is some discrepancy between the tutsplus documentation and the FME Server documentation. The former has five required fields, the latter six. Also, I am wondering if this command will work on a Windows FME Server.

 

 

This command should run every half hour between 4:00 AM and 7:00 PM, Monday thru Friday, as I understand it the syntax:

 

 

* 29,59 4-19 * * 2-6 "C:\\ProgramData\\Safe Software\\FME Server\\Server\\repository\\MY_REPOSITORY_NAME\\MY_FME_SCRIPT\\MY_FME_SCRIPT.fmw"

 

 

But no matter what variation I try it I get "The CRON expression syntax is not valid". Perhaps some guru from the FME team can elucidate?

 

 

Thanks

 

 

 

I would use the fme server link and from my own experience I know it will work on a windows environment.

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • Best Answer
  • November 8, 2016

FME Server uses the quartz scheduler.

This website can help you create cron statements for the quartz scheduler and thus FME Server:

http://www.cronmaker.com/

Here is an entry on the Ideas exchange for improving the scheduler.

https://knowledge.safe.com/idea/32771/improve-fme-server-schedules-dashboard-layout.html

It would be great if you added your requirements there so that we can make the best improvement for the most people.