Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Hosted target service if failing to run beyond 15 mins

Hi There,

I have very basic node js app implemented as a hosted target on Apigee cloud. The job of the App is to trigger another API on Apigee once every minute.

The app is deployed successfully and able to trigger the target API once every minute. However after the 15th min the triggers stop. I have tried with a different interval (e.g. 10 sec) even in this the triggers stop after 15 mins after triggering every 10 sec. Wondering if there is some form of rule that kills the node service after 15 mins?

I am attaching the code snippet of the Node module below.

const request = require('request');

var requestLoop = setInterval(function(){
request('https://my-domain.apigee.net/v1/event-handler', { json: true }, (err, res, body) => {
     if(!err && res.statusCode == 200){
          console.log('sucess!');
      }else{
          console.log('error' + res.statusCode);
      }
  });
}, 60000);
0 4 153
4 REPLIES 4