Questions tagged [azure-webjobssdk]
Azure WebJobs SDK is a framework that simplifies the task of adding background processing to Windows Azure Web Sites.
469
questions
0
votes
0
answers
30
views
why webjob getting failed without showing the detailed error?
I am uploading my .Netframework 4.8v console application to Azure Webjob by using Publish as Azure Webjobs.... This is my code:
class Program
{
private static IServiceCollection ...
0
votes
1
answer
40
views
EventGrid trigger / handler in WebJobs
Straight to the point: is there a way to handle EventGrid events in WebJobs?
What I've got so far is:
var builder = new HostBuilder()
.UseEnvironment(Environment....
0
votes
0
answers
53
views
Azure WebJobs Status
I am new to Azure portal.
I have a client application on .net which is currently deployed on Azure. Our project does sends emails to customers through sendgrid API. For emails, some customers complain ...
1
vote
0
answers
73
views
dynamically create new instance of TimeTrigger AzureFunction/WebJob at runtime
here's my scenario.
I have a legacy time-trigger based Job processing system. I would like to migrate them to AzureFunction/ WebJob.
There is a finite set of C# methods.
These C# methods would be ...
0
votes
1
answer
177
views
Send alert on failure of webjobs in azure portal
There is one requirement to send an email upon unsuccessful web-jobs only. There are 16 web-jobs which are deployed and running successfully on azure portal. I have suggested to modify the code for ...
0
votes
1
answer
31
views
Azure Web Jobs Pipeline [inject before a function instance is created]
Problem:
I have a Web Job that logs to ApplicationInsights. I have a custom TelemetryInitializer (that is registered as a singleton (with no options)) that add some contextual information to the ...
0
votes
1
answer
43
views
Azure WebJobs SDK - What purpose does method ToInvokeString serve?
When implementing an IValueProvider in a custom WebJobs SDK extension, we are supposed provide implementation of method ToInvokeString. When does the SDK call this method? What should be the ...
0
votes
1
answer
48
views
Replacement for TraceFilter in Azure.WebJobs 3.0+
I am upgrading from Microsoft.Azure.WebJobs 2.0.0 to 3.0.30. In our existing code, we have some custom code that uses the TraceFilter from the older SDK, which is no longer present.
Is there a way to ...
0
votes
0
answers
38
views
How to implement multiple concurrent queue processors with webjobs?
If i have, for example, an Azure Event Hub with 2 partitions and i want to have 2 separate consumers (1 for each partition) can i do it within the same WebJob?
I know i could have 2 app services each ...
0
votes
1
answer
695
views
Azure WebJobs SDK TimerTrigger Functions not running
I am trying to Create an Azure WebJob that runs a function every x seconds. I am following the tutorials on the Microsoft website and this example of how to use TimerTrigger with WebJobs on Github. ...
0
votes
0
answers
32
views
IValidateOptions not getting called in my Web Job
I have been trying to implement the Options design pattern in my Azure Web Job, and it's working fine except that I can't get my IValidateOptions implementation to trigger.
I have an appsettings.json ...
0
votes
1
answer
142
views
Make Azure Webjob Timer Trigger Not Run as a Singleton
I have a set of worker functions that are spun up as needed to pull from Service Bus Topic subscriptions when they are created. New workers are created when a new Subscription is created by way of a ...
0
votes
0
answers
72
views
What is the best way to receive strongly typed data in a WebJob QueueTrigger?
I have a data model called "MyMessage" that serves as a base class for other message types. Objects of this base class type or a derived type from it is put into an Azure Storage Queue.
I ...
0
votes
0
answers
68
views
Automatically reschedule TimerTrigger after FunctionTimeoutException is thrown
We are using the Azure Web Jobs SDK to create a web job which contains one TimerTrigger listener. The listener is configured to run every 30 seconds with a Timeout set to 5 seconds.
[Singleton]
[...
0
votes
1
answer
170
views
Azure Web Job always Failed
I have this Azure WebJob function that runs every Saturday. But the Azure function always tagged as Failed but the Job runs successfully when finished as I checked the log.
Already increase ...
2
votes
1
answer
447
views
Azure Webjobs SDK: HttpTrigger. What is the default URL on localhost?
I have this function
public class Functions
{
public Functions()
{
}
[FunctionName("httptriggertest")]
public async Task<IActionResult&...
0
votes
1
answer
341
views
Multiple web jobs on same App Service or single Web Job on multiple app services?
I need to deploy multiple web jobs for my current project. However, none of them will be too resource intensive, so I will be using the same App service plan. I am trying to decide between
Create ...
0
votes
1
answer
90
views
How to configure automatic failover of storage account when using AzureWebJobsStorage for Web Job Timer Triggers
I have an Azure Web Job that runs on a TimerTrigger to put some messages on a Service Bus queue. I have deployed this Web Job on 2 separate regions, for high availability in case one region goes down. ...
0
votes
1
answer
181
views
NET 5.0 WebJob only wants to write to my local Blob storage
We're halfway through 2021 and all the WebJob answers I'm finding are pretty old.. maybe there's a new wrinkle I'm missing
This picture from my Microsoft Azure Storage Explorer says it all:
On my ...
0
votes
1
answer
511
views
Where do Azure WebJobs read configuration settings from?
I’m developing an Azure WebJob with Visual Studio 2019, with Microsoft.NETCore.App v5.0.0 framework. I need to read values from configuration, but I don’t understand where I should put them to finally ...
-1
votes
2
answers
370
views
Have Azure Webjob Function run once on startup
Is there a specific way to have Azure WebJobs trigger a function once on startup without using external messages/triggers? I know there is the RunOnStartup annotation that can be added to the ...
0
votes
1
answer
61
views
How can I update the azure web job trigged timing
I have an existing azure web job but for some changes, I need to update the timing of the azure web job from 10 min to 5min. But in the portal, I did not get any section from where I can update. Do I ...
0
votes
1
answer
447
views
How to get Information of a Azure function timer trigger similar to windows task scheduler
I am using Azure functions with timer that replaces on-premises Task Schedule jobs, I am looking for the following information for the each Azure function i deploy on to the azure platform.
Which ...
0
votes
1
answer
39
views
Cannot create more than 20 webjobs (all are triggered)
I've been trying to find out why this is happening but basically we have 20 webjob workers that are triggered, and whenever we try to add more the creation fails through azure portal.
Previously we ...
3
votes
1
answer
200
views
Get events when an Azure Durable Function changes status
I want to monitor a running instance of an Azure Durable Orchestrator Function for changes (like when it completes, fails etc)
I know that I can poll the status API for changes, but i was wondering if ...
1
vote
1
answer
1k
views
How to check which Azure function currently running
I have 10 timer trigger azure functions configured under a Azure Function App. Is there any way to monitor which function is currently running?
0
votes
1
answer
171
views
Disabling WebJob Functions Depending on Environment
My team recently inherited an ASP.NET solution that runs on Azure App Services. One project in the solution seems to define C# code that leverages the Azure WebJobs SDK to run several functions. I am ...
0
votes
1
answer
117
views
Azure Webjob for monitoring service(API) [closed]
I needed some feedback on how to configure Azure Webjob for below requirement.
Need to have only one Web job. In that Webjob, need to have one function for each service(API) for multiple Geo's(Ex: ...
1
vote
1
answer
145
views
What is a BindAsync method with two params in the IBinding interface
In the Azure WebJobs SDK, we have the IBinding interface. This interface has a method BindAsync with two params, but I can't understand what is the first param object value and when this overload ...
1
vote
2
answers
1k
views
How to get .Net Core 3.1 Azure WebJob to read the AzureWebJobsStorage connection string from the Connected Services setup?
I'm building a WebJob for Azure to run in an App Service using .Net Core 3.1.
The WebJob will be triggered via Timers (it's basically a cronjob).
Timer triggers require the AzureWebJobsStorage ...
0
votes
1
answer
287
views
Is Function Filters supported for Azure functions using python?
I want to run pre/post processing logic when a azure function is invoked. Currently I have 4-5 azure functions which should run with same pre/post processing logic(only parameters will change).
This ...
0
votes
2
answers
275
views
Webjobs Running Error (3587fd: ERR ) from zipfile
I have the following small script in a file named fgh.py which I have been attempting to schedule as a webjob
import pandas as pd
df=pd.DataFrame({'a':[1,2,2],'b':[5,6,9]})
df['x']=df.a.sub(df.b)
...
1
vote
1
answer
661
views
Azure Webjobs on a python SDK
This may be a very basic question but forgive me, I am a week old in AZURE.
I have built a webjob and it executes my basic python scripts quite well within my service app interactive window in Azure ...
0
votes
1
answer
44
views
Azure WebJob executes the function more often than it should
I created a continous WebJob which is supposed to execute my public function every 5 minutes.
It has been working fine for some days but recently noticed it's being called twice in a shorter period of ...
0
votes
1
answer
2k
views
Event Grid Trigger Azure Function: How to access metadata(user defined key, value pair) of deleted blobs?
How to get metadata of deleted blob in Event Grid Trigger Azure Function? Below is a sample C# code -
[FunctionName("EventGridTriggerFunction")]
public static void Run([EventGridTrigger]...
0
votes
1
answer
79
views
WebJobs & Service Bus Triggered Functions - Performance considerations
I've a WebJobs that contains almost 10 different functions, each triggered by a ServiceBusTrigger, ovbiously from different Service Bus queues.
I'd like to have a high throughput and so I configured:
...
2
votes
2
answers
619
views
I am having trouble in using User Secrets with Azure SDK WebJobs in a console application using Net Core 3.1
I'm trying to use user secrets because I want to save my key AzureWebJobsStorage in secrets.json for local development.
So the problem is:
I created my user secrets, installed the necessary packages,...
0
votes
1
answer
90
views
Azure WebJob with TimerTrigger just firing 5 times
I recently created an Azure WebJob which is intended to be executed every 5 minutes, forever. Thing comes when I can see it just gets executed every 5 minutes but just 5 times:
[08/25/2020 12:41:51 &...
0
votes
1
answer
310
views
Azure WebJobs 3.x does not trigger with CRON expression in Azure Application Settings
Environment: .Net Framework 4.7.2
Application settings being read from: app.config, no applicationsettings.json in the project
Issue: Environment variable doesn't override the CRON expression in ...
0
votes
1
answer
99
views
Is there a pattern or an easy way to cancel a specific run in an Azure WebJob Function
In my multi-tenant application I have a background process that runs in a webjob and can take several minutes. The time varies according to each customer's data.
But sometimes, when I'm testing ...
1
vote
1
answer
871
views
Application Insights Visual Studio integration not working for Console application (WebJob)
I have a console application we deploy as a WebJob in Azure. Application Insights is working, because the telemetry is send to Azure correctly. But the "Application Insights Search" window ...
0
votes
1
answer
96
views
After updating webjob(Microsoft.Azure.WebJobs) package to version 3.0.16 explicit deadletter is not happening
With the previous version 2.3.0 of webjob explicit deadletter was possible.
Below is the sample code
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft....
1
vote
1
answer
385
views
Setting up Azure WebJobs using ConfigureWebHostDefaults
The official document uses the following code snipper to set up a WebJob.
var builder = new HostBuilder();
builder.ConfigureWebJobs(b =>
{
b.AddAzureStorageCoreServices();
});
For some reason,...
0
votes
2
answers
342
views
webjob QueueTrigger does not delete message from the queue
.NET Core 2.2, WebJobs SDK 3.0
I have a webjob that takes the messages from a queue. A standard QueueTrigger like this
public void ProcessQueueMessage(
[QueueTrigger("%WebJobs:...
0
votes
1
answer
1k
views
Webjob not using appsettings.env.json
.NET Core 2.2, WebJobs SDK 3.0
I have a webjob that I configure like this :
var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Development";
...
1
vote
1
answer
352
views
Webjobs Method Indexing - Dependency Injection Exception IConfiguration
.NET Core 2.2, WebJobs SDK v3.0
I initialize my host like this
HostBuilder builder = new HostBuilder();
builder.ConfigureAppConfiguration((context, configApp) => {
...
1
vote
1
answer
732
views
How to get the current Azure FunctionNameAttribute?
How do I access the function name set with [FunctionName("SomeFunctionName")] programmatically inside the function?
This is the function attribute name and not the method name.
eg: In the code below,...
2
votes
1
answer
718
views
Running web job gives ArgumentNullException on start
I'm developing an Azure webjob using .NET Framework but when I'll run this localy, I've this exception after the startup.
Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException: The ...
5
votes
1
answer
2k
views
Visual Studio 2019 - Adding WebJob project in WebApp
In my solution i have an aspnet core 2.2 WebApp, and i want to add an existent project like webJob but there isn't the option: Add WebJobs from existent project
Why? With the same procedure i add ...
1
vote
1
answer
440
views
Is it possible to convert Azure function to Azure webjob
Is it possible to convert Azure function to Azure Webjob? as example, can following azure function covert to azure job?
public class Functions
{
// This function will get triggered/...