Azure WebJob - take parameters and create instances of the same webjob -


i have following scenario. have console app (let's call consoleapp.exe) takes parameter value , runs continuously. if have consoleapp.exe "cars" -- have app run "cars"

now let's say, need "animals"' consoleapp.exe "animals" -- have app run "animals"

essentially, need webjob created , run continuously each time there need new parameter value.

consoleapp.exe "cars" --> webjob_cars

consoleapp.exe "animals" --> webjob_animals

consoleapp.exe "robots" --> webjob_robots

which means, webjob gets created same consoleapp.exe except different parameter values.

how go accomplishing this?

copying amit's answer other question:

this not possible out of box.

there way though @ cost, can have 1 directory binaries (at place on site example: d:\home\site\wwwroot\app_data\jobs\common) , have webjobs 1 run.cmd script each proper arguments calling common directory:

@echo off d:\home\site\wwwroot\app_data\jobs\common\dowork.exe job1 

the problem update story, when need update these common webjobs binaries you'll first have stop webjobs since files locked , start them afterwards.


Popular posts from this blog