Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Hangfire always succeeded Even with Throw Exception. #10497


User avatar
0
jur.porras created

Hi,

Even I throw an exception the hangfire always return succeeded.

sample code:

 try
{
    ...

}
catch (Exception e)
{
    throw new Exception($"Couldn't optimize route. Please check setup. Error: {e.Message}");
}

Please advise.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jur.porras

    Could you share your entire Job class ? Is the return type of the executed method void ?