# Server-queues aware TaskScheduler

**URL:** <https://discuss.hangfire.io/t/server-queues-aware-taskscheduler/10221>\
**Category:** question\
**Tags:** recurring, sql-server, queues, aspnetcore\
**Created:** [September 4, 2023, 11:27pm UTC](https://discuss.hangfire.io/t/server-queues-aware-taskscheduler/10221 "2023-09-04T23:27:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Rauchegger](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/stefan_rauchegger/32/3431_2.png) [@Stefan\_Rauchegger](https://discuss.hangfire.io/u/Stefan_Rauchegger)\
**Post date:** [September 4, 2023, 11:27pm UTC](https://discuss.hangfire.io/t/server-queues-aware-taskscheduler/10221/1 "2023-09-04T23:27:49Z")

</div>

I have a recurring job which shall be processed individually on different servers/services which share the hangfire database. each has a specific non-default queue defined and the recurring job is added on each server to the respective queue.  
As it looks now, server B is scheduling (not executing) next run for the queue on the other service A - at least if A is just not running at the moment.

Would it be possible to write a TaskScheduler which only schedules next occurrances for its own queue?

TIA
