C
C#5mo ago
Jake

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
Jake
Jake5mo ago
@viceroypenguin | 🦋🐧
Keswiik
Keswiik5mo ago
How are you setting up your queues? And you've shown 0 code, so more details would be good.
viceroypenguin
viceroypenguin5mo 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
Jake
Jake5mo ago
@viceroypenguin | 🦋🐧 would the mamqsql work with redis?
viceroypenguin
viceroypenguin5mo ago
doesn't look like it.
Jake
Jake5mo ago
dammit
viceroypenguin
viceroypenguin5mo 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.
Jake
Jake5mo ago
I see, thanks a lot for the help bro 🙂
Want results from more Discord servers?
Add your server
More Posts