yuzd / Hangfire.HttpJob

httpjob for Hangfire,restful api for Hangfire,job调度与业务分离
https://github.com/yuzd/Hangfire.HttpJob/wiki
MIT License
628 stars 185 forks source link

Http Code 400 not reported as failed task #28

Closed AlthalusDGr8 closed 4 years ago

AlthalusDGr8 commented 4 years ago

Hi We noticed that if the service invoked returns an HTTP 400 error, the job is still classifed as successfull. Is there a way to get these reported as failed (and triggering an error notification)? Thanks

yuzd commented 4 years ago

I will check it today.

NicolaAtorino commented 4 years ago

Hello! is there any news on this issue?

yuzd commented 4 years ago

update to v3.0.5 . httpjob will check if code less than 400 will reported as failed by default.

If you want to customize the check rules , please refer to the settings below image