question

MohanRosh-6327 avatar image
0 Votes"
MohanRosh-6327 asked MayankBargali-MSFT answered

serviceBusAdministrationClient.QueueExistsAsync(QueueName) not working in Task Scheduler

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@MohanRosh-6327 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.