azure-webjobs

Separate schedules for Azure webjob functions?

折月煮酒 提交于 2020-01-02 05:03:50
问题 Is it possible to set up separate schedules for individual non-triggered functions in an Azure webjob? I ask because I have half a dozen individual tasks I'd like to run at different times of the day and at different intervals and don't want to create a separate project for each. 回答1: Yes you can using the TimerTriggerAttribute Azure WebJobs SDK Extensions nuget download page Here is a sample code: public class Program { static void Main(string[] args) { JobHostConfiguration config = new

Function host is not running

孤街醉人 提交于 2020-01-02 01:16:07
问题 I have a Function App in azure and when I hit the URL of the function app it says "Function host is not running." I am not sure where I have to check and what needs to be changed. I tried restart but still no luck. 回答1: This usually means that there is some bad configuration in your function app which is causing the host to fail to start up. Things like having an invalid host.json or an invalid proxies.json file are a possible cause. To diagnose, it's best to look at the function host logs.

How to have a configuration based queue name for web job processing?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 12:01:27
问题 I have a webjob app to process a ServiceBus queue, which runs fine, with the following method: public static void ProcessQueueMessage([ServiceBusTrigger("myQueueName")] BrokeredMessage message, TextWriter log) However, I would like to be able to change the queue name without recompiling, according for example to a configuration appsetting, can it be done? 回答1: I've found an implementation of the INameResolver using configuration setting from the azure-webjobs-sdk-samples. /// <summary> ///

Scheduled Azure WebJob deployed via Git results in On Demand Job

余生长醉 提交于 2020-01-01 04:12:08
问题 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

Can an Azure WebJob or Azure Function be triggered by Azure File Storage activity?

好久不见. 提交于 2019-12-31 04:16:26
问题 Can an Azure WebJob or Azure Function be triggered by Azure File Storage activity ? For example, when a file is created in folder "/todo/". 回答1: We do not currently have any bindings for Azure Files, though we have an issue tracking that feature in our repo here: https://github.com/Azure/azure-webjobs-sdk-extensions/issues/14. 回答2: As of now (23/12/2019) microsoft currently working on Filestorage trigger. Its in feature now.it will be available very soon. enter link description here 来源: https

Azure WebJob/Scheduler every 30 minutes from 8am-6pm?

主宰稳场 提交于 2019-12-31 01:50:14
问题 When I go to configure a Schedule in the Azure management console, I'm only given the option of scheduling with an absolute end date/time (or never ending) and an interval. So I can't, from this UI, schedule a job to every 30 minutes run every day from 8:00 AM to 6:00 PM only (i.e. don't run from 6:01 PM to 7:59 AM). Windows Task Manager and all other schedulers (cron, quartz) I've used before support the behaviour I want. Is type of schedule supported at all in Azure, e.g. through the API or

What happens when a scheduled WebJob runs for a long time

久未见 提交于 2019-12-30 19:58:20
问题 What happens if an Azure WebJob is scheduled to run but the previous running instance hasn't finished yet? Will it run the WebJob again so that two are running at once? Will it not run the WebJob and start the clock over? I haven't been able to find this behavior documented anywhere. I have a job I want to run hourly but it's possible that sometimes it might take longer than an hour to complete, but I never want two of them running at once. 回答1: As i understand it scheduled webjobs is just

Azure webjob; Scheduled execution as well triggers by queue

无人久伴 提交于 2019-12-30 18:43:10
问题 I try to figure out if it's possible to make one Azure webjob and behave it scheduled for say like once per 1 minute and also let it be able to be triggered by a queue. I managed to do both of the requirements separate but not combined in one job. I know that in order to make them trigger on a queue I need to use JobHost and a Functions class with methods that catch the trigger. Still this blocks the scheduler and only handles triggers When I omit the JobHost... well then the schedule works

Visual Studio 2015 Publish WebJobs Issue

杀马特。学长 韩版系。学妹 提交于 2019-12-30 08:15:19
问题 Using the right-click, Publish as Azure WebJob... option in VisualStudio 2015, the job is published however the runMode seems to be ignored. In my file, I have the following settings, however the job is continually set to an On Demand job in the portal after publishing: { "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json", "webJobName": "MyJob", "startTime": "2015-07-21T00:30:00-08:00", "endTime": null, "jobRecurrenceFrequency": "Day", "interval": 1, "runMode":

How can I sign a JWT token on an Azure WebJob without getting a CryptographicException?

半世苍凉 提交于 2019-12-30 06:55:50
问题 I have a WebJob that needs to create a JWT token to talk with an external service. The following code works when I run the WebJob on my local machine: public static string SignES256(byte[] p8Certificate, object header, object payload) { var headerString = JsonConvert.SerializeObject(header); var payloadString = JsonConvert.SerializeObject(payload); CngKey key = CngKey.Import(p8Certificate, CngKeyBlobFormat.Pkcs8PrivateBlob); using (ECDsaCng dsa = new ECDsaCng(key)) { dsa.HashAlgorithm =