1
votes

I have an Azure timer trigger webjob, deployed in two different environments with two different storage accounts. The webjobs have been deployed for about two months now, and were running as expected for quite some time. However, for about a week now, the function is being recognised but not being executed.

Here is how the logs look:

Found the following functions:
ADFSchedulerWebJob.Functions.ProcessTimerMessage
Job host started

Nothing happens after the Job host is started, i.e., the function ProcessTimerMessage is not called/executed. This is how the function looks:

public static void ProcessTimerMessage([TimerTrigger("0 */2 * * * *", RunOnStartup = true)] TimerInfo info, TextWriter log)
    {
        //function logic
    }

This is how the Main method looks like:

static void Main()
    {
            JobHostConfiguration config = new JobHostConfiguration();
            config.UseTimers();
            var host = new JobHost(config);
            host.RunAndBlock();
    }

The same is occurring even when I try to debug the webjob locally. What could be the possible reason/resolution?

Any help appreciated.

1
Could you show us some (relevant) code? Mainly interested in the TimerTrigger cron expression.rickvdbosch
Edited the question to include function signature containing TimerTrigger CRON expression.M_coder
Did you add config.UseTimers(); in the main method?rickvdbosch
Yes, added the main method in the question above for reference.M_coder
Are you using the same storage account for another webjob or another environment ? Have a look at this question: stackoverflow.com/questions/40296109/…Thomas

1 Answers

3
votes

What could be the possible reason/resolution?

As Thoms mentioned that it seems that the same storage account is used for another webjob or others.

We could debug it with following ways:

1.Try to use another storage account

2.Check the webjob log from the storage

We could get more info about Webjob log from the blog.