Can multiple Azure webjobs share the same assemblies?

后端 未结 1 1960
挽巷
挽巷 2020-12-17 06:48

I have an Azure WebJob that needs to be run 4 different ways and at different times, using 4 different command line parameters. I can set the parameters with a run.cmd but

相关标签:
1条回答
  • This is not possible out of the box.

    There is a way to do it though but at a cost, you can have one directory with your binaries (at some place on your site for example: d:\home\site\wwwroot\app_data\jobs\common) and have your WebJobs only as one run.cmd script each with the proper arguments calling to that common directory:

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

    The problem is the update story, when you need to update these common WebJobs binaries you'll first have to stop your WebJobs since the files will probably be locked and start them afterwards.

    0 讨论(0)
提交回复
热议问题