Skip to main content
Solved

FME Cloud task schedulling

  • December 13, 2017
  • 4 replies
  • 7 views

oliver.morris
Contributor
Forum|alt.badge.img+14

Quick question, is it possible to schedule a task in FME Cloud to run between certain hours day 8-5pm at 1 minute intervals. Leaving time in the evening for some chunkier tasks to run?

Thanks

Best answer by oliver.morris

Hi, thanks for the advice, actually I ended up using the CRON functionality which did the job.

Thank you

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.

4 replies

Forum|alt.badge.img
  • 288 replies
  • December 13, 2017

Hi @olivermorris,

In the FME Cloud context there are two types of scheduling mechanisms available:

FME Cloud instance schedules

FME Server schedules

Assuming that you want to run a scheduled FME Server task (workspace) only between 8 am to 5 pm on your FME Cloud instance (that is still running after 5 pm to process other tasks), the answer is yes.

I would suggest creating two additional scheduled tasks, one that enables your first task (the one running at one-minute intervals) at 8 am and one that disables that same task at 5 pm every day. This way your one-minute interval task is running every day between 8 am to 5 pm. To enable or disable your task you will only need a workspace with a Creator and an HTTPCaller that calls the FME Server REST API. This endpoint lets you modify (enable/disable) a scheduled task:

 

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html#!/schedules/update_put_3

 

You only need to change the "enabled" key to either "true" or "false" in the JSON object in the body.

Let me know if this works for you!


oliver.morris
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 176 replies
  • Best Answer
  • December 18, 2017

Hi, thanks for the advice, actually I ended up using the CRON functionality which did the job.

Thank you


Forum|alt.badge.img
  • 288 replies
  • December 22, 2017

Hi, thanks for the advice, actually I ended up using the CRON functionality which did the job.

Thank you

Hi @olivermorris,

 

Awesome that you got it to work with CRON! Would you mind sharing your CRON expression with the community in your answer? This could be very helpful for other users stumbling across your question.

 

Thanks,

 

Gerhard

 


oliver.morris
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 176 replies
  • January 12, 2018

I used the cron tab generator and the run on cron function in FME cloud job scheduler

https://crontab-generator.org/