serviceBusAdministrationClient.QueueExistsAsync(QueueName) not working in Task Scheduler

Mohan Rosh 1 Reputation point
2021-03-30T12:49:57.863+00:00

h iAll, i have created sample application to read Service Bus queue using serviceBusAdministrationClient and code is foudn working in console application But when I run the same code in my task scheduler application stops/terminate after execute below line of code await serviceBusAdministrationClient.QueueExistsAsync(Queuename) Is task scheduler runs in separate thread? all code are working fine in console app, issue only in Task schduler thanks in advance

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,996 Reputation points Moderator
    2021-03-31T11:14:02.307+00:00

    @Mohan Rosh Can you confirm if you have observed any exceptions while executing the code in the task scheduler. Can you provide more details on how you are scheduling the task? Are you using Windows Task Scheduler? One of the issues could be the thread can be in the "Activating State" and the service bus method never executes. The issue is more towards the execution of your console application using windows task scheduler so I will also suggest you to post your query in stackoverflow with the tags windows-task-scheduler, taskscheduler so it is visible for the larger community and the experts in task scheduling can provide their input.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.