This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19430|Reply: 5

[New Issue] Hangfire adds data normally, but keeps executing because of the exception

[Copy link]
Posted on 2020-9-11 15:56:52 | | | |
Hangfire can add data normally, but it keeps repeating the execution, and when I check the logs, I find an error - the deserialization token is an exception, how to solve it?





Previous:Azure DevOps 2020 (VI) Upgrade NuGet tools
Next:ASP.NET Core injects NullReferenceException with the Autofac attribute
 Landlord| Posted on 2020-9-11 16:20:48 |
The following is the abnormal information, I set it to 0:00 execution, but this situation occurred in the afternoon, I really don't know what to do
Posted on 2020-9-11 17:31:07 |
Is there a problem with what you write in the task execution method, resulting in the inability to complete the task and causing a dead loop?
Write try catch in the execution method

Error execution delay due to exception JobScheduler is now in Failed state and will retry execution instead of 00:04


 Landlord| Posted on 2020-9-30 13:32:01 |
This post was last edited by Hangfire Advanced on 2020-9-30 13:34

This is a scheduled task of the project, there is no problem with the production environment, only the test environment and the development environment have problems, and the code is the same, so I really don't know what the problem is

 Landlord| Posted on 2020-9-30 13:43:09 |
Hangfire Advanced Posted on 2020-9-30 13:32
This is a timed task of the project, there is no problem with the official environment, only the test environment and the development environment have problems, and the code is the same, so I really don't know...

This one will jump out of the loop after 5 retries, and I don't see anything wrong with my logic for the time being
Posted on 2020-10-8 11:43:24 |
Hangfire Advanced Posted on 2020-9-30 13:43
This one will jump out of the loop after 5 retries, and I don't see anything wrong with my logic for the time being

There is no problem in reading the code, and I don't know what the problem is, I haven't encountered it.

https://stackoverflow.com/questi ... h-delay-doesnt-work
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com