Skip to main content
Solved

FME Server Schedules for Week Day Only

  • November 7, 2016
  • 5 replies
  • 272 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.

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

5 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • 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+18
  • Contributor
  • 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


  • November 7, 2016
erik_jan wrote:

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+17
  • Supporter
  • November 7, 2016
jimo wrote:
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+19
  • Safer
  • 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.


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