azure-webjobssdk

Communication between a WebJob and SignalR Hub

。_饼干妹妹 提交于 2019-12-21 04:06:15
问题 I have the following scenario: I have an azure webjob (used to send mails) and I need to check the progress of the webjob in my web application. I am using SignalR to communicate with clients from my server. When I want to send an email, I push a message in the queue and the azure webjob does his job. The question is, how can I communicate the progress of the webjob to the client? Originally my idea was to push a message from the webjob, so the Hub could read it from the queue. Then, I would

AzureWebJobsDashboard Configuration Error

谁都会走 提交于 2019-12-20 16:24:12
问题 I created a new Azure WebJob project in Visual Studio 2015 using .NET Framework 4.6. In the app.config, I set three connection strings: AzureWebJobsDashboard AzureWebJobsStorage MyDatabaseConnectionString The AzureWebJobsDashboard and AzureWebJobsStorage connection strings are identical and they're both pointing to my storage account. I'm including one of the connection strings -- since they're both identical, except the "name". <add name="AzureWebJobsDashboard" connectionString=

No parameterless constructor error in WebJobs with .NET Core and Ninject

大兔子大兔子 提交于 2019-12-20 07:51:30
问题 I'm trying to do a bit of a balancing act here. Currently Azure WebJobs don't support .NET Core. With some help, I created a .NET Core Console App and made it work as a WebJob. On top of that I'm trying to implement Ninject for DI. Code compiles fine but when I run it, I'm getting the "No parameterless constructor is defined for this object." error -- see below. I may be in a bit of unchartered territory here with Azure WebJobs, .NET Core 2.0 and Ninject but any idea what may be causing this?

Azure webjob not appearing to respect MaxDequeueCount property

雨燕双飞 提交于 2019-12-19 05:44:34
问题 I've got an Azure webjob with several queue-triggered functions. The SDK documentation at https://docs.microsoft.com/en-us/azure/app-service-web/websites-dotnet-webjobs-sdk-storage-queues-how-to#config defines the MaxDequeueCount property as: The maximum number of retries before a queue message is sent to a poison queue (default is 5). but I'm not seeing this behavior. In my webjob I've got: JobHostConfiguration config = new JobHostConfiguration(); config.Queues.MaxDequeueCount = 1; JobHost

Azure WebJobs ServiceBus returns Exception: found 2 DNS claims in authorization context

帅比萌擦擦* 提交于 2019-12-18 12:53:28
问题 I'm trying to read a message from an Azure ServiceBus queue using an Azure WebJob but it's throwing and exception: Unhandled Exception: System.InvalidOperationException: Found 2 DNS claims in authorization context. I've set the correct connection strings named "AzureWebJobsServiceBus", "AzureWebJobsDashboard" and "AzureWebJobsStorage" The WebJob Program code has been updated to use JobHostConfiguration: class Program { static void Main() { var config = new JobHostConfiguration(); config

Azure Triggered Webjob - Detecting when webjob stops

≡放荡痞女 提交于 2019-12-17 21:06:13
问题 I am developing a triggered webjob that use TimerTrigger. Before the webjob stops, I need to dispose some objects but I don't know how to trigger the "webjob stop". Having a NoAutomaticTrigger function, I know that I can use the WebJobsShutdownWatcher class to handle when the webjob is stopping but with a triggered job I need some help... I had a look at Extensible Triggers and Binders with Azure WebJobs SDK 1.1.0-alpha1. Is it a good idea to create a custom trigger (StopTrigger) that used

How can I keep my Azure WebJob running without “Always On”

陌路散爱 提交于 2019-12-17 18:33:14
问题 I have a continous webjob associated with a website and I am running that website on the Shared mode . I don't want to go to Always On option as there is no real need for my application. I only want to process the message when the calls are made to my website. My issue is that the job keeps stopping after few minutes even though I am continuously calling a dummy keep alive method on my website at every 5 minute that posts a message to the queue that is monitored by that webjob. My webjob is a

WebJob ServiceBus Topic permissions

我们两清 提交于 2019-12-14 02:27:53
问题 I'm involved in a multi-tier project, one part of which is consuming a stream of "events" from a third-party system. The vendor is publishing these via an Azure Service Bus Topic - they provide, control & manage the Bus. We are simply provided with the URI, TopicName and Subscription details. Our approach was to put together a Webjob, using the provided ServiceBusTrigger in the SDK to handle listening for new messages & triggering processing them into our system. However, we seem to have hit

Host is not running; requests will be queued but not execute until the host is started

六眼飞鱼酱① 提交于 2019-12-13 18:58:50
问题 Often when I republish a webjob with some minor changed and try to Rerun a Webjob function SCM shows me the following warning in the web portal, and I cannot execute the function Host is not running; requests will be queued but not execute until the host is started. The host is always running in this case, and the job is setup as singleton, there should not be a problem with multiple hosts. 回答1: The WebJobs Dashboard shows this message until it receives an updated "heartbeat" message from the

IS Azure Webjobs have its own memory allocation?

断了今生、忘了曾经 提交于 2019-12-13 14:41:12
问题 I am new to Azure web-jobs. When I am working with web-jobs I have come up with an question that whether web-job have its own memory allocation like process? we are creating web-jobs under website(web app) so for website a separate memory will get created.And then we are creating multiple web-jobs under that website in azure. so if static class gets instanciated under azure website instance.then web-jobs which uses that static class concurrently,will leads to data loss? like this eg: website