azure-webjobs

Why is TimerTrigger in AzureWebJob is being triggered twice?

十年热恋 提交于 2019-12-11 13:58:31
问题 I am using an Azure WebJob function with the "TimerTrigger" attribute to queue up emails for some users every morning at a certain time. Based on reading, I understand this should behave as a Singleton and only ever trigger once across all scale-out instances. However, users report getting two emails, and logging shows that the function is being called twice. Why is this? Here is the relevant function: public static void EnqueueAllSummaries([TimerTrigger("0 15 8 * * *")] TimerInfo timer,

Allow traffic from a webjob in a staging slot in Azure

大憨熊 提交于 2019-12-11 13:39:43
问题 I'm using a staging slot in Azure, where I just allow some IP's to have access to it. I have written the below rule in the web.config file: <rule name="Block unauthorized traffic to staging sites" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^mydomain\-mydomainslot1\."/> <!-- white listed IP addresses --> <add input="{REMOTE_ADDR}" pattern="ip1" negate="true"/> <add input="{REMOTE_ADDR}" pattern="ip2" negate="true"/> </conditions> <action type=

Time limit on Azure Webjobs triggered by Queue

百般思念 提交于 2019-12-11 12:54:21
问题 Are there any time limits on the queue triggered function inside an azure web job. My function takes about 20-30 mins since it needs to go over a lot of records in the DB. The function status in the end is Never Finished. I put in the settings.job file with { "stopping_wait_time": 1800 } - with no effect. But within five minutes or so its status is set to Never Finished. I searched and yes found some ppl asking similar questions - with no definitive answers. I found some exceptions in the

Converting Video files in a Azure Webjob with ffMpeg

有些话、适合烂在心里 提交于 2019-12-11 12:23:07
问题 I'm having trouble using ffMpeg in an Azure webjob. I found the following article (How to call ffmpeg.exe to convert audio files on Windows Azure?) and it is exactly what I want to do, however, I cannot get ffMpeg to execute and it gives no error message. To diagnose the problem, I have boiled it down to its essentials by uploading ffMpeg, a video file to convert, and batch file to run it: The script in run.cmd is simply: del output.mp4 ffmpeg -i screencast.wmv -c:v libx264 -r 15 output.mp4

How to specify AzureWebJobsStorage in latest azure webjob 3.03

风流意气都作罢 提交于 2019-12-11 09:54:14
问题 I updated my old azure webjob code to package to 3.03 and then it is just not working. I managed to fix all compile-time errors, but when running locally, it throws this error: Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexingException HResult=0x80131500 Message=Error indexing method 'MvQueueProcessorV2.ProcessMVRequest' Source=Microsoft.Azure.WebJobs.Host StackTrace: at Microsoft.Azure.WebJobs.Host.RecoverableException.TryRecover(ILogger logger) in C:\projects\azure-webjobs-sdk-rqm4t

How to run webjobs in azure emulator

久未见 提交于 2019-12-11 09:53:58
问题 I have a console based application as WebJob. Now internally i am trying to map a CloudDrive using the storageconnectionstring UseDevelopmentStorage=true It is throwing exception ERROR_AZURE_DRIVE_DEV_PATH_NOT_SET . I searched for this error and found that WebJobs do not run locally in Azure emulator. Is this information still valid? Is there any plan to provide emulator (storage) support for webjobs in near future say in a week or so? thanks 回答1: The information is still valid - we don't

How to pass multiple webjobs as a parameter to the PowerShell script

天涯浪子 提交于 2019-12-11 09:47:39
问题 The below script is provided to start the Webjobs in the azure.But I am including the Json file into the Powershell script and running the Webjobs.Its good for only one environment.But I want the same script to be used for multiple environments with different Webjob names.So how can I modify this script so that I can stop and start the Webjobs in VSTS at release definition,Currently,I have 4 Webjobs for Dev Environment and I have 8 Webjobs for Int Environment with different azure

BlobTrigger triggering job multiple times in Azure WebJobs 0.3 Beta

扶醉桌前 提交于 2019-12-11 09:13:57
问题 After upgrading to WebJobs 0.3 beta, Azure WebJobs is calling my method (with BlobTrigger as input) multiple times when a blob is posted to storage. This happens both when testing locally at the Console, and in Azure. In my case, I am taking the BlobTrigger, and then posting to a queue, like so: public static void ProcessFactoryFileSubmission( [BlobTrigger(blobs.RESPONSE + "/{requestId}_{factoryId}_{filename}")] ICloudBlob blob, [Table(tables.PACKAGE)] CloudTable table, [Queue(queues.FACTORY

Azure WebJobs using .NET Core 2 failing with “Invalid storage account”

十年热恋 提交于 2019-12-11 08:45:34
问题 Following Matt Roberts excellent step-by-step article Azure WebJobs in .NET Core 2 (with DI and configuration) I've created a solution that deploys without issue (using Visual Studio 2017), but fails with a "Invalid storage account" exception: Unhandled Exception: System.InvalidOperationException: Invalid storage account 'mywebjobsstorage'. Please make sure your credentials are correct. ---> System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<Microsoft.WindowsAzure

How do I get process id of particular webjobs in azure?

时间秒杀一切 提交于 2019-12-11 07:32:44
问题 I want to kill web job so how can I get web job process id? is it possible to get web job process id & kill a web jobs using programming? 回答1: I want to kill web job so how can I get web job process id?is it possible to get web job process id & kill a web jobs using programming? According to your description, I suggest you could use kudu webjob stop rest api stop the webjob. The web job will atuomatic restart after you killed the process. You could use Kudu rest api to achieve your