Hangfire retries jobs at any server

I have ran into an issue with hangfire that causes my retry jobs to file due to them running on a server that doesnt support it. Currently, I have 2 servers with 2 different queus specified. I dont use "default" queues since my system is separated. My issue is caused during chaos testing when jobs are supposed to fail and then ultimately retried. My issue is that when a job is supposed to retry, it doesnt go to the "queue" that I have specified. I'm just wondering if there's any way to specifiy in the annotations where to retry the failed batch jobs etc. Also, if there isn't an option, does Hangfire attempt to run it on a different server eventually?
8 Replies
W Sigma El Skibidi
W Sigma El SkibidiOP12mo ago
@viceroypenguin | 🦋🐧
Keswiik
Keswiik12mo ago
How are you setting up your queues? And you've shown 0 code, so more details would be good.
viceroypenguin
viceroypenguin12mo ago
haven't tried doing this, but this issue seems relevant, and the associated github repo https://github.com/HangfireIO/Hangfire/issues/1695 https://github.com/GeXiaoguo/Hangfire.MAMQSqlExtension
W Sigma El Skibidi
W Sigma El SkibidiOP12mo ago
@viceroypenguin | 🦋🐧 would the mamqsql work with redis?
viceroypenguin
viceroypenguin12mo ago
doesn't look like it.
W Sigma El Skibidi
W Sigma El SkibidiOP12mo ago
dammit
viceroypenguin
viceroypenguin12mo ago
but you can copy the relevant portions out of it and modify it for redis nothing in mamqsqlextension is specific to sql, just that it's written on top of the sql provider.
W Sigma El Skibidi
W Sigma El SkibidiOP12mo ago
I see, thanks a lot for the help bro 🙂

Did you find this page helpful?