Skip to content

A scheduled task attribute to address a rescheduling bug in HangFire.

License

Notifications You must be signed in to change notification settings

Kode-Rex/HangfirePreserveOriginalQueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HangfirePreserveOriginalQueue

A scheduled task attribute to address a rescheduling bug in HangFire where it places the rescheduled job into the default queue instead of the one it was originally executed on.

Usage

Annotate your scheduled task class with the attribute

[PreserveOriginalQueue]
public class UserSyncTask : IUserSyncTask{
   ....
}

And then add the filter to your Hangfire configuration

GlobalConfiguration.Configuration.UseFilter(new PreserveOriginalQueueAttribute());

About

A scheduled task attribute to address a rescheduling bug in HangFire.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages