node.js - How to "wake-up" an Azure webjob from within a mobile service? -



node.js - How to "wake-up" an Azure webjob from within a mobile service? -

let's have azure webjob configured singleton, , running "continuously" in free-site context. according azure specifications, after period start webjob shut down, unless maintain running:

as of march 2014, websites in free mode can time out after 20 minutes if there no requests scm (deployment) site , website's portal not open in azure. requests actual site not reset this.

however, that's fine me. goal "waking-up" webjob instance upon invocation of mobile-service custom api, basic next example:

exports.post = function(request, response) { //ensure webjob running, in case wake var rq = require('request'); rq("http:// ??? (any site invoke?) ", function(error, response, body) { //do nil }); //do specific stuffs related mobile service var rtn = { message : 'hello world!' }; rtn.req = request.body; response.send(statuscodes.ok, rtn); };

all need same behavior staircase timed-light: 1 time presses lite button, lights turn 1 period of time. if presses button while lights on, same lights maintain lighting on. hoping give sense...

my problem finding easy way "indirectly-invoke" webjob, restarted.

to "wake up" webjob need create request scm site is: https://{sitename}.scm.azurewebsites.net

the phone call needs authenticated , can basic auth providing website's deployment credentials, can downloading publish profile website's dashboard in azure portal.

node.js azure-mobile-services azure-webjobs

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -