azure-webjobs

Azure Webjobs: One Job with several Functions, or several Jobs with 1 function each?

房东的猫 提交于 2019-12-09 15:25:18
问题 How do I decide between creating several WebJobs with 1 function each and bundling several functions into one or only a few WebJobs? Thanks 回答1: There is no straight answer to your question. Sorry. Usually you group functions by workflow or role. For example if you have a workflow that contains a function that resizes an image, then a function that applies a watermark and another one that replicates the images then it makes sense to put all the functions together because they are related. You

Azure WebJob not accepting a valid(?) CRON expression

烈酒焚心 提交于 2019-12-09 15:01:31
问题 I used crontab.guru to create a very simple CRON expression with the desired behavior to execute every day at 3:15 (AM) and this is the result: 15 3 * * * Unfortunately for me, in Azure Portal this does not work, but if I add a leading 0 to my expression as such, 0 15 3 * * * , Azure will accept it, while crontab.guru will tell me it is wrong. The specification according to crontab.guru is: minute hour date month weekday . The questions.. From where comes the discrepancy? Is it Microsoft that

Where do I get the AzureWebJobsDashboard connection string information?

ε祈祈猫儿з 提交于 2019-12-09 07:23:15
问题 Trying to update my Service Bus apps to use the new RTM and I need this information. <add name="AzureWebJobsDashboard" connectionString="DefaultEndpointsProtocol=https;AccountName=;AccountKey=" /> <add name="AzureWebJobsStorage" connectionString="DefaultEndpointsProtocol=https;AccountName=;AccountKey=" /> Previously I just used the connection string associated with each queue. I have tried about every combination of username and key I have associated with my account with no luck. 回答1: The

How do you deploy an Azure WebJob and App to the same App Service via VSTS?

廉价感情. 提交于 2019-12-09 03:11:05
问题 I have a Visual Studio 2017 solution with both an ASP.NET Web Application project (called UI) and an Azure WebJob project (called WebJobs). I have configured both to deploy to Azure from within Visual Studio (right click, publish) to the same App Service. The solution is also configured to build whenever I push to VSTS. I would like to set up VSTS to also deploy both projects upon successful builds but I cam having problems. My understanding is that to achieve this I need to create a release

Set nextVisibleTime in Azure Webjobs SDK

我怕爱的太早我们不能终老 提交于 2019-12-08 19:14:10
问题 I'm using Azure Webjobs to process messages from a queue. I saw that the Webjobs SDK processes any failed message again after 10 minutes, and it if fails 5 times it moves it to the poison queue (1). Also I can see the nextVisibleTime of the message in the queue, that is 10 minutes after the insertionTime (2). I want to use the AzureSDK error handling of the messages but I cannot wait 10 minutes for the message to be processed again. Is there any way I can set this nextVisibleTime to a few

Azure web job stopped/aborted

不问归期 提交于 2019-12-08 16:51:40
问题 I have an azure web job running continuously, but the logs indicated that over the weekend it's status changed to Aborted, then Stopped. Although I did not use the website for the weekend, I am not sure why this would happen as there are still a lot of messages on the queue that need to be processed. What can cause a continuous web job to stop or abort? Does it have a timeout period? Can the occurrence of multiple errors also cause it to stop or abort? 回答1: The job itself doesn't have a

Run triggered Azure WebJob from Code

江枫思渺然 提交于 2019-12-08 16:25:34
问题 I created a console application upload as Azure trigger Webjob. It is working fine when I run it from Azure Portal. I want to run this from my C# code. I don't want to use Queue or service bus. I just want to trigger it when user perform a specific action in my web app. After searching I got a solution to trigger job from a scheduled http://blog.davidebbo.com/2015/05/scheduled-webjob.html Any idea how to run from code? 回答1: As Justin said, we can use WebJob API to achieve this requirement. We

Azure Service Bus Emulator [closed]

对着背影说爱祢 提交于 2019-12-08 15:50:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . I am developing a WebJob , which uses service bus queue, but I don't have an Azure account. Does there exist some Service Bus emulator to test the webjob ? I need to take the queue input to simulate the [ServiceBusTrigger] 回答1: As far as I know, there is no Service Bus emulator. A feedback on UserVoice is open

Add command line arguments to Azure WebJob deployment

丶灬走出姿态 提交于 2019-12-08 13:01:38
问题 I'm deploying webjob to Azure using VS2015, but cannot find way to add command line in webjob-publish-settings.json. Is there any way to do it? 回答1: You can do this in the following way: Add a run.cmd file to your WebJob in VS (same place as your Program.cs ) Make sure to set this file's Copy to Output Directory to Copy if newer (in the file properties) In that file, just add one line that has: NameOfYourExe.exe /dosomething When deployed to Azure (under D:\home\site\wwwroot\app_data\jobs

Suppress logging in Azure Webjobs (“Executing: 'xxx' because New queue message detected on 'yyy'.”)

一世执手 提交于 2019-12-08 12:33:04
问题 Is there a way to suppress log entries of Executing: 'xxx' because New queue message detected on 'yyy'. ? I still want to see my logs (written to Console), however I'm not interested in seeing Executing (...) entries. Those do not provide me any value and those are the majority of the logs now. 回答1: You can control the Console log level globally via JobHostConfiguration.Tracing.ConsoleLevel . Those "Executing/Executed" messages are traced at the TraceLevel.Info level which is the default. You