azure-webjobs

Slow azure queue webjob performance (local dev)

折月煮酒 提交于 2019-12-24 08:09:51
问题 My webapi must perform a set of heavy operations in order to fullfil a request. To minimize processing time I am offload the "view counter increment" to a webjob. The way I am doing it currently is by enqueueing a message with userId and productId to azure queue storage at the end of each request. The webjob function triggers on new queue messages and after parsing the message it adds values (increments or adds new) to a static concurrent dictionary. I am not incrementing and writing to azure

Are Azure web jobs part of Azure scheduler retirement?

自闭症网瘾萝莉.ら 提交于 2019-12-24 07:39:50
问题 Azure Scheduler is scheduled to retire on September 30, 2019. Migration documentation says "All Scheduler job collections and jobs will be deleted from the system." In our Azure portal, webjobs are displayed under a scheduler job collection "WebJobs-NorthCentralUS". Are all these jobs going to be deleted? 回答1: The web jobs won't be deleted, but the tiggers will, so they won't execute on schedule anymore. You can set up a logic app to poke them or you can redeploy them with a cron expression.

Azure Web Jobs - Triggered from queue - triggered or continuous?

大憨熊 提交于 2019-12-24 06:28:20
问题 I have a web job I've created and I want to deploy to azure. However I'm confused about the configuration when you create it. It's a web job that's triggered from an azure storage queue. It works fine locally. However when I go to create the web job in azure, I'm confused by the choices...my choices are Triggered or Continuous. If I choose Continuous, I get a choice single or Multi. If I choose Triggered, I'm given a choice of Scheduled or Manual. I don't want a Scheduled, and I'm not sure

azure web job “The job is missing basic auth fields”

为君一笑 提交于 2019-12-24 00:29:45
问题 I made a web job for my azure website. It works when I click "Run Once" in the azure website web jobs tab but it doesn't work when I set it at determinate time every day. The web job is marked as success but the it does nothing. I was checking the web jobs logs and it seems that there were five attempts but all of them shows: Http Action - Request to host '******.scm.azurewebsites.net' failed: The job is missing basic auth fields . I have the AzureWebJobsDashboard and AzureWebJobsStorage in

Configurable Timer Triggers - Azure Web Jobs

∥☆過路亽.° 提交于 2019-12-23 19:55:44
问题 I'm building a job to trigger at some regular interval (say 1 minute). I've successfully used triggered web jobs with time-span hard coded in the functions. public void foo([TimerTrigger("00:01:00")] TimerInfo timer) Now if I ever want to change the trigger time from 1-min to 2-min I've to redeploy the code. Instead is there a way to make the TimeTrigger Configurable, from a config file. Note that replacing the string with a dynamically read value isn't possible as the TimerTrigger Attribute

403 (Forbidden) publishing Azure Web Job from Visual Studio

风流意气都作罢 提交于 2019-12-23 17:23:19
问题 I have a web application project deployed to Azure. I have added existing project(console application) as Azure Web Job to web app project and configured the web job to run daily. But now when I publish the web app, i am getting following error An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden). Note: The Azure Web App gets published successfully if i configure the web job to run on demand instead of recurring(daily) Can

Autoscaling continuous Azure WebJobs not working

允我心安 提交于 2019-12-23 09:53:30
问题 I have a few continuous web jobs setup on a azure website scaled to two to three large instances (standard mode with always on). My jobs only ever run on one of the w3wp processes. I need these to scale out but they won't. I've watched a few videos and read the docs. I have no settings.job file or anything set that should be limiting these. Here is the source to my job runner 回答1: "Note that when using the Kudu UI, you are connection to a single instance, and won't see processes from other

How to communicate from Azure webjob to Azure webapp?

若如初见. 提交于 2019-12-23 09:37:04
问题 I'm running an Azure webjob alongside an Azure webapp. The job runs periodically and the result of the job is needed in the webapp. How do I get the result there? I tried with a WCF netNamedPipeBinding but since there are no startup tasks for Azure webapps I cannot add a net.pipe binding to the IIS website nor can I enable the net.pipe protocol. I have it working now with a basicHttpBinding but this binding is exposed to the entire internet which I absolutely do not want. I simply want

How do I have an Async function that writes out to a service bus queue?

我只是一个虾纸丫 提交于 2019-12-23 07:26:45
问题 Using the Azure WebJobs SDK, I want to create an async function that will receive ServiceBus queue input and write to a ServiceBus queue output. Async methods cannot have out parameters which, for examples on BlobStorage, appears to be worked around by having Streams and TextWriters instead. However, when I try to do the same with a ServiceBus parameter I receive an exception. public static async void Transform( [ServiceBusTrigger("%InputQueue%")] String input, [ServiceBus("%OutputQueue%")]

.Net Core 2.0 Webjob with Scoped Dependencies

允我心安 提交于 2019-12-23 05:42:09
问题 I am building a webjob with .Net Core 2.0 set up using an IJobActivator. IServiceScopeFactory.CreateScope does not seem to work in the IJobActivator if Functions is scoped, nor within Functions if it's a singleton. I.e. public static void Main(string[] args) { IServiceCollection serviceCollection = new ServiceCollection(); serviceCollection.AddScoped<Functions>(); //Or serviceCollection.AddSingleton<Functions>(); serviceCollection.AddScoped<TelemetryScopeProvider>(); //... Other scoped