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
@viceroypenguin | 🦋🐧
How are you setting up your queues?
And you've shown 0 code, so more details would be good.
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
@viceroypenguin | 🦋🐧 would the mamqsql work with redis?
doesn't look like it.
dammit
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.
I see, thanks a lot for the help bro 🙂