Skip to main content
Question

How to create webhook with running job expiry time ?


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+11

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
  • October 18, 2021
siennaatsafe wrote:

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+11
ahmarshoeb wrote:

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


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