Questions tagged [azure-webjobssdk]

Azure WebJobs SDK is a framework that simplifies the task of adding background processing to Windows Azure Web Sites.

The Azure WebJobs SDK is a framework that simplifies the task of writing background processing code that runs in Azure. The Azure WebJobs SDK includes a declarative binding and trigger system that works with Azure Storage Blobs, Queues and Tables as well as Service Bus. The binding system makes it incredibly easy to write code that reads or writes Azure Storage objects. The trigger system automatically invokes a function in your code whenever any new data is received in a queue or blob. See the azure-webjobs-sdk repo for more information.

480 questions
4
votes
2 answers

Azure Webjobs ServiceBusTrigger - perform a different function when MaxDeliveryCount is reached

I have several WebJobs with ServiceBus triggers, and I have a custom MessageProcessor to do some processing after the message has finished processing. I'd like to be able to do something different (specifically, log an Error instead of a Warning) if…
Anthony Keenan
  • 166
  • 2
  • 8
4
votes
1 answer

Different service bus connection strings for ServiceBusTrigger WebJob

I have a WebJob which reads messages from an event topic, processes them and then creates a message on a different topic. I can achieve this easily using a service bus trigger. public void EventSubscriptionToNotificationTopic( …
4
votes
2 answers

Azure WebJob FileTrigger Path 'D:\home\data\...' does not exist

I've created a WebJob to read files from Azure Files when they are created. When I run it locally it works but it doesn't when I publish the WebJob. My Main() function is: static void Main() { string connection =…
Geasi Puozzo
  • 819
  • 1
  • 8
  • 11
4
votes
3 answers

How to get the details of a continuous Azure WebJob invocation

Looking at the Kudu Azure WebJobs API docs https://github.com/projectkudu/kudu/wiki/WebJobs-API I see there are several calls I can do to manage WebJobs programmatically. What is missing is a call to get, for a continuous webjob, the details of a…
Giorgio Bozio
  • 2,982
  • 3
  • 20
  • 20
4
votes
1 answer

Dependency Injection Ninject with WebJobs for DbContext in static function scope

Is there a way to hook into the WebJobs function execution so we can have a scope per function? Something like this: kernel.Bind().ToSelf().InWebJobFunctionScope(); I would like to use the InScope() from Ninject, but I don't know where…
jsgoupil
  • 3,788
  • 3
  • 38
  • 53
4
votes
1 answer

Azure web job, service bus trigger not triggered for old messages available in the queue

I have implemented the azure web job to consume messages from azure service bus. Service bus trigger works fine for new messages arrived to service bus but its not picking up the messages that were already available on the service bus before service…
4
votes
2 answers

Why does my continuous azure webjob run the function twice?

I have created my first azure webjob that runs continously; I'm not so sure this is a code issue, but for the sake of completeness here is my code: static void Main() { var host = new JobHost(); …
WPFUser
  • 403
  • 4
  • 16
4
votes
1 answer

Transaction support in Azure WebJobs async functions

.NET Framework 4.5.1 introduced transaction support in async methods, for example: using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)) { var result = await DoWorkAsync(cancellationToken) …
Nick
  • 1,365
  • 2
  • 18
  • 37
4
votes
2 answers

Multiple Azure WebJob functions on single queue message?

Our back-end is collecting raw data and pushing it to Azure Storage Queue. We would like to do two things with each queued message: Log/archive it Parse it and send the parsed result to a new queue To keeps things small and clear, we would like to…
Mikael Koskinen
  • 12,306
  • 5
  • 48
  • 63
4
votes
1 answer

Azure WebJob Function had errors

I have an Azure WebJob and when it picks up a message from the queue I get the error "Function had errors. See Azure WebJobs SDK dashboard for details". The dashboard shows no errors, it just insists my connection strings are not set which they are…
Craig
  • 36,306
  • 34
  • 114
  • 197
4
votes
1 answer

Can Azure WebJobs poll queues on demand?

I have a WebJob which gets triggered when a user uploads a file to the blob storage - it is triggered by a queue storage message which is created once the upload is complete. Depending on the purpose of the file, it will post messages to other…
4
votes
2 answers

Notification of when continuous Azure WebJob is stopping for NoAutomaticTrigger type jobs

All, I am migrating existing Worker Role code to an Azure Web job. I am trying to use the WebJob SDK (1.0) so that I have the full integration with the Azure Web Site. My difficultly is that the JobHost doesn't play nicely with jobs that are outside…
GrahamB
  • 1,368
  • 15
  • 35
4
votes
1 answer

Azure WebJobs SDK Service Bus DeadLetter queue

When using the WebJobs SDK what is the proper way to move a BrokeredMessage to the deadletter queue? Usually I would just call msg.DeadLetter(). However, the SDK takes care of managing the life cycle of the brokered message. It will call…
Tod Cunningham
  • 3,691
  • 4
  • 30
  • 32
4
votes
6 answers

Azure WebJobs and Thread Safety

I'm new to Azure WebJobs and I have a basic question. I have a console app deployed as a WebJob, by nature console apps use static a lot, and I have some local static variables as shown below, would I run into trouble with multiple threads updating…
Ray
  • 12,101
  • 27
  • 95
  • 137
4
votes
3 answers

Is the Azure WebJobs SDK specifically meant for working with Azure Storage?

All the documentation (eg http://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-webjobs-sdk-get-started/) and sample projects for the Azure WebJobs SDK refers to hooks and bindings to Azure Storage (Tables, Blogs and Queues). I am…
Emilio
  • 1,951
  • 3
  • 18
  • 24