azure-webjobs

Communication between a WebJob and SignalR Hub

人盡茶涼 提交于 2019-12-03 12:56:49
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 notify clients from the hub. However, I am not able to find a way to communicate the webjob and the hub

Stuck when publishing Web App to Azure with WebJob

╄→гoц情女王★ 提交于 2019-12-03 12:45:44
I just used the WebJob SDK to add a WebJob to my web app. Now, when publishing the web app, VS is stuck when publishing (does not hang, but does not progress either). I know it's caused by the WebJob because when I remove the webjobs-list.json , it publishes perfectly. Weird thing is, publishing the WebJob alone (using Publish as Azure WebJob ) does not present this problem. Using .NET Framework 4.5.1 if it matters. Update: 4.5 did not make a difference. Here's an image of the problem: Setting the "maximum number of parallel project builds" to 1 (default is 4) solved the problem for me. It is

Azure Web Job in Visual Studio 2015 - deploy not working with error “target ”MSDeployPublish“ does not exist in the project.”

徘徊边缘 提交于 2019-12-03 12:42:16
I use Visual Studio 2015 and azure sdk 2.7.1. I created azure web job. When I run deploy I get error: The target "MSDeployPublish" does not exist in the project. I created web job in Visual Studio 2013 - deploy is work. I compare the two projects(2015 and 2013) - in 2013 there is this code: <Import Project="..\packages\Microsoft.Web.WebJobs.Publish.1.0.3\tools\webjobs.targets" Condition="Exists('..\packages\Microsoft.Web.WebJobs.Publish.1.0.3\tools\webjobs .targets')" /> I put this code in my project in 2015, but deploy is not working. I saw this question , but it does not work for me. Using

Azure Webjob TextWriter logger being disposed in the middle of my method

我怕爱的太早我们不能终老 提交于 2019-12-03 12:29:07
I'm using a Webjob with the Windows Azure Storage SDK. When a new item shows up in a Queue, a method in my class is invoked. According to the SDK docs , if I take a TextWriter as a parameter to my method, the SDK will provide me with a TextWriter that I can write to which will show up in the Webjob's logging infrastructure. This makes it pretty easy to diagnose issues and troubleshoot things. public async static void ProcessQueueMessage([QueueTrigger("queueName")]MyModelType model, TextWriter logger) { await logger.WriteLineAsync(string.Format("Processing Item {0}", model.SasUrl)); // Some

Deploy azure website and webjobs in same sln using VSO - Error - There can be only one

你说的曾经没有我的故事 提交于 2019-12-03 12:13:10
问题 I've got to a website and a webjob project in the same sln: Sritt (The website) Sritt.Webjob In properties of Sritt theres a webjobs-list.json with the following setting: "WebJobs": [ { "filePath": "../Sritt.WebJob/Sritt.WebJob.csproj" } I've configured the by VSTS build like this (with the new buildsystem): Solution: **\*.sln MSBuild Args: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build

Azure ServiceBus Message Serialization/Deserialization

北战南征 提交于 2019-12-03 11:54:26
I am using application(.Net Core) to send an object through azure service bus and received by a web job(.Net Core) Question is how to serialize/deserialize to send/receive the object? I found lots of reference for the legacy BroakerMessage.GetBody() to receive message, but not the new .Net Core method, please advice, thanks. Sender code: using Microsoft.Azure.ServiceBus; MyClass object = new MyClass(); var message = new Message(object); await queueClient.SendAsync(message); Receiver code: using Microsoft.Azure.ServiceBus; public void ProcessQueueMessage([ServiceBusTrigger("queue")] Message

Scheduled Azure WebJob deployed via Git results in On Demand Job

為{幸葍}努か 提交于 2019-12-03 10:40:51
I have a Git-Enabled ASP.NET WebApp with one associated Azure WebJob. When I deploy this via Visual Studio everything is fine, but this is kinda hard in a Continuous Delivery Environment so I would like to publish the Web App and the WebJob via Git. Via the Azure Tooling I associated my WebJob project and I got a "webjobs-list.json" file inside the WebApp Project: { "$schema": "http://schemastore.org/schemas/json/webjobs-list.json", "WebJobs": [{ "filePath": "../CodeInside.Hub.Job/CodeInside.Hub.Job.csproj" }] } webjobs-list.json Source Inside the Console App Project I got a "webjob-publish

Azure WebJobs - No functions found - How do I make a trigger-less job?

本小妞迷上赌 提交于 2019-12-03 10:35:34
I'm new to Azure WebJobs, I've run a sample where a user uploads an image to blob storage and inserts a record into the Queue, then the job retrieves that from the queue as a signal to do something like resizing the uploaded image. Basically in the code the job uses QueueTrigger attribute on a public static method to do all that. Now I need a job that just does something like inserting a record into a database table every hour, it does not have any type of trigger, it just runs itself. How do I do this? I tried to have a static method and in it I do the insert to db, the job did start but I

Where do I get the AzureWebJobsDashboard connection string information?

[亡魂溺海] 提交于 2019-12-03 09:16:58
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. Rick Rainey The AzureWebJobsDashboard connection string is your Azure Storage Account used by the Azure SDK to

How to reset the Kudu WebJob dashboard or logging?

久未见 提交于 2019-12-03 07:43:25
I'm trying to find details of the function executions of a particular WebJob. Unfortunately the function dashboard in Kudu is showing duplicates, exclamation marks, and no function executions for over two months. Trying to use the Azure CLI to list the WebJob's runs gives the error NotFound . The WebJob has been moved to a different web app which could be related. It doesn't matter if all of the logging history is wiped and everything reset, I would just like this working again! Any ideas? Julien Corioland Just browse the storage account configured for your Azure WebJob Dashboard (using a tool