Closed yong2khoo-lm closed 10 months ago
Please try upgrading to version 1.8.7, it now displays whether there are time synchronization issues between application host and job storage in the bottom of the page, and let me know if that's the case.
Fyi, with v1.8.6, using back the deprecated method will work.
After it works, then re-patching with the non-deprecated code will work again. Not sure why.
for now, since it is working, then let me close first.
Hey, I'm looking at this problem right now, and it looks really strange that non-deprecated method works differently than the deprecated one. I checked every line of RecurringJob
class and found no differences between them. If you'll experience this problem once again, please let me know what AddOrUpdate
method overload you are using to look at that method more precisely - unfortunately there are a lot of them due to backward compatibility.
Hey, I'm looking at this problem right now, and it looks really strange that non-deprecated method works differently than the deprecated one. I checked every line of
RecurringJob
class and found no differences between them. If you'll experience this problem once again, please let me know whatAddOrUpdate
method overload you are using to look at that method more precisely - unfortunately there are a lot of them due to backward compatibility.
Sure no problem. Thanks~
It turns out, after a test again, it looks like i have to rebuild my application .dll after every database restore. So probably it is not due to the deprecated method or not.
It turns out, after a test again, it looks like i have to rebuild my application .dll after every database restore.
What do you mean?
It turns out, after a test again, it looks like i have to rebuild my application .dll after every database restore.
What do you mean?
My bad for confusion. Let me elaborate:
At first i mentioned upgrading to schema 9 that it doesn't work. I suspect some tables didnt get properly migrated (with manual script execution, probably due to human error).
So I redo with the schema 5 again (restore database, this time not updating the schema). Just after the restore, i create a recurring job. The same observation appears (next execution in the past, and no next execution).
Then, I tried the deprecated code, build and patched the application .dll (which consume the hangfire) to the server. It works. (then i posted here)
But, finally, I request the colleague to restore the database again, patching the application .dll (this time with non-deprecated code). It seems to be working also
Updating the table schema to 9. Subsequent testing also works.
Hence i deduced that, most likely nothing to do with the code. Instead, after a database restore, i should also build and patch the .dll instead?
There is a bit overhead when requesting the database restore and testing. sorry for inconvenience.
After upgrading from schema 7 to schema 9 (1.8.6), when creating a new recurring job, this happens.
Did i overlook something? (eg: table update typo, etc)