azure-webjobs

Azure WebJob timeout configuration settings

ε祈祈猫儿з 提交于 2019-11-27 21:19:00
问题 We have an Azure web site with a daily scheduled job. In our case, the scheduled job runs a stored procedure that takes about 10 minutes so there is no local processing. Our web job is terminating after about 4 minutes with this error. Command 'cmd /c ...' aborted due to no output and CPU activity for 121 seconds. You may increase SCM_COMMAND_IDLE_TIMEOUT setting to solve the issue. We've tried adding the following app settings to the web job's app.config file: <appSettings> <add key="SCM

An error occurred while creating the WebJob schedule

空扰寡人 提交于 2019-11-27 20:55:24
问题 I an trying to publish my website along with few WebJobs but after the website and the jobs are created on the Azure Website, I see an error on the VS.NET 2013 that says: Error 948 An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [mysitename] and WebSiteUrl [http://mysitename.azurewebsites.net] supplied my website has 2 WebJobs, 1 that runs continuously and it's created and running, but the one that needs to be triggered on a

Azure Web Job-The remote server returned 404

孤街醉人 提交于 2019-11-27 19:31:07
问题 I have a continuos running web job which listens to a start queue and a stop queue with their respective functions. There are 3 predefined process in the web job and the start queue contains a message which mentions the process name to be started while the stop queue contains a message which mentions the process name to be stopped. When ever the webjob stops a process it crashes and restarts with the above exception since last 4 weeks. Executing: 'Functions.StartProcess' because New queue

How to prevent Azure WebJob from starting up after publishing?

和自甴很熟 提交于 2019-11-27 17:38:59
问题 We have an Azure Website setup with a "staging" deployment slot, and we use a continuous Azure WebJob to process long-running background jobs. It appears that when you publish to the Website (and include the WebJob binaries), that the WebJob will restart itself if it was previously stopped. Our current deployment process looks like the following: Deploy to STAGING Immediately & Quickly stop the WebJob on STAGING (try to prevent 2 WebJobs from processing messages) Smoke test and verify code on

Can I invoke an Azure webjob from an Azure website and pass it parameters?

你。 提交于 2019-11-27 15:04:42
问题 I have an Azure webjob that I want to invoke from an Azure website. I want to pass string parameters from the website to the webjob. I know I can invoke the webjob as a REST API (https://github.com/projectkudu/kudu/wiki/Web-jobs). So I can invoke the webjob without any parameters: POST jobs/triggered/myjobname/run But adding parameters at the end doesn't appear to be working, i.e. jobs/triggered/myjobname/run?myparam1=value1 The information I see on using attributes in Microsoft.WindowsAzure

Azure Function logging using TraceWriter in external library

谁说我不能喝 提交于 2019-11-27 13:33:20
问题 How can I reuse the TraceWriter object available in an Azure Function to log information in an externally referenced library? I tried passing in the object using the constructor and referencing the TraceWriter class (web.http.tracing). I didn't have luck as the classes seem different. 回答1: Short version Use the Microsoft.Azure.WebJobs.Host.TraceWriter available in this nuget package. Alternatively, build your functions as a Web Project and you can debug locally. You can find a sample here.

How do I deploy an Azure WebJob alongside a .NET Core Web App via Git?

我怕爱的太早我们不能终老 提交于 2019-11-27 13:02:48
问题 I thought this would be a pretty straightforward task and there is quite a bit of documentation out there but I've had zero luck with any of it and am assuming that it is pretty much all out of date. I have .NET Core MVC 6 Web App that I've been developing for a while and need to set up a WebJob for it on Azure. I want to deploy this alongside the app using the continuous deployment system Azure provides that the app is already using. According to Kudu docs it's possible: https://github.com

Will an Azure Web job run on multiple instances?

冷暖自知 提交于 2019-11-27 12:56:43
问题 I am planning to deploy a website to Azure, that will utilize Web Jobs. If the site is scaled up to run on multiple instances, should I expect the job to be started on all the instances as well (running concurrently), or can I expect there to only be one instance of the job running at a time ? Can this be configured in Azure ? 回答1: I assume you are using Continuous WebJobs and not Manual/Scheduled. In that case, it will run on all the instances at once. For this to happen correctly, you need

How to set Azure WebJob queue name at runtime?

≡放荡痞女 提交于 2019-11-27 12:35:19
I am developing an Azure WebJobs executable that I would like to use with multiple Azure websites. Each web site would need its own Azure Storage queue. The problem I see is that the ProcessQueueMessage requires the queue name to be defined statically as an attribute of the first parameter inputText . I would rather have the queue name be a configuration property of the running Azure Website instance, and have the job executable read that at runtime when it starts up. Is there any way to do this? This can now be done. Simply create an INameResolver to allow you to resolve any string surrounded

Azure Webjobs vs Azure Functions : How to choose

耗尽温柔 提交于 2019-11-27 10:02:02
I've created some Azure Webjobs that use triggers and I've just learnt about Azure Functions . From what I understand Azure Functions seem to overlap with Azure Webjobs features and I have some difficulty to understand when to choose between Function and Webjob: Unlike Webjobs, Functions can only be triggered, it hasn't been designed to run continuous process (but you can write code to create a continuous function). You can write Webjobs and Functions using many languages (C#, node.js, python ...) but you can write your function from the Azure portal so it is easier and quicker to develop test