Open Closed

Hangfire always succeeded Even with Throw Exception. #10497


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)
  • 0
    ismcagdas created
    Support Team

    Hi @jur.porras

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