Skip to main content
Question

How to create webhook with running job expiry time ?

  • October 14, 2021
  • 3 replies
  • 36 views

I am using FME Server 2020. Need to create a webhook but along with that need to set expiry time for the job. Is it possible ?

3 replies

siennaatsafe
Safer
Forum|alt.badge.img+12
  • Safer
  • 214 replies
  • October 15, 2021

Hi @ahmarshoeb​ ,

 

You can use the tm_ttc directive to send a job to a certain queue when submitting it via a webhook URL.

e.g. https://<hostname>/fmedatadownload/Samples/austinApartments.fmw?opt_showresult=false&opt_servicemode=sync&tm_ttc=<value>

 

The tm_ttc is the time (in seconds) elapsed for a running job before it's cancelled. The minimum value is 1 second, values less than 1 second are ignored.

 

Please see the Job Directives page of our documentation for more information on this.


  • Author
  • 2 replies
  • October 18, 2021

Hi @ahmarshoeb​ ,

 

You can use the tm_ttc directive to send a job to a certain queue when submitting it via a webhook URL.

e.g. https://<hostname>/fmedatadownload/Samples/austinApartments.fmw?opt_showresult=false&opt_servicemode=sync&tm_ttc=<value>

 

The tm_ttc is the time (in seconds) elapsed for a running job before it's cancelled. The minimum value is 1 second, values less than 1 second are ignored.

 

Please see the Job Directives page of our documentation for more information on this.

Thanks. Is there any way that we can calculate the time based on job submitted. Means, we need to abort the job after 10 minutes irrespective of the time it is in queue or running. Can we somehow use tm_ttl + tm_ttc =100, or something like that.


siennaatsafe
Safer
Forum|alt.badge.img+12
  • Safer
  • 214 replies
  • October 18, 2021

Thanks. Is there any way that we can calculate the time based on job submitted. Means, we need to abort the job after 10 minutes irrespective of the time it is in queue or running. Can we somehow use tm_ttl + tm_ttc =100, or something like that.

Hi @ahmarshoeb​ 

 

You can apply both the ttl and ttc values to a webhook but unfortunately, there is no way to get a cumulative value between the two. That would be a great idea though if you wanted to create an idea for it on the Ideas page. https://community.safe.com/s/idea/Idea/00B4Q00000ABiEt