@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.
serviceBusAdministrationClient.QueueExistsAsync(QueueName) not working in Task Scheduler
Mohan Rosh
1
Reputation point
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.
1 answer
Sort by: Most helpful
-
MayankBargali-MSFT 70,996 Reputation points Moderator2021-03-31T11:14:02.307+00:00