-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating my Blazor solution to Xpand.XAF.All 4.242.4 and .NET 9.0, the Hangfire jobs stopped working #1084
Comments
did you tried the minor from #1083 my guess is it relates |
The problem remains. System.TypeLoadException: 'Could not load type 'Hangfire.HangfireServiceCollectionExtensions' from assembly 'Hangfire.AspNetCore, Version=1.8.17.0, Culture=neutral, PublicKeyToken=null'.' |
please provide a sample |
Seems to be any problem with JobSchedulerService in the : internal static IObservable Connect(this ApplicationModulesManager manager) Because the JobsFromActions are not executed when the buttons are clicked |
yeah switching .net frameworks might seem easy but the devil is hidden there. Unfortunately I have been travelling not much time to research yet |
thanks, i will wait. |
if possible, please update Hangfire dependency to Version_180 |
no idea what is happening with your solution neither I could run it my self. I create a new install everything as prompted used the inmem hangfire storage so jobs do not persist in each app run. Added a job and noticed executing when I |
I compiled and ran your example and got exactly the same behavior. |
what do u mean I put a breakpoint at the Failed moethod and was hitted
|
Here goes de recording |
this must be a new Xaf Job object created just before you trigger the job right? |
yes |
I have a production portal where sometimes I have to trigger jobs manually. When can I expect a solution? |
I do not see how to repro your problem, my app works fine on my side and not in yours, what to say try to find alternatives e.g. maybe another machine cause I can trigger jobs manually just fine as per my video |
Which video? |
I guess I missed to press |
chrome_emJIcFFKjd.mp4 |
u can manually try to trigger the job from your own code this is Hangfire api and nothing to do with Xaf. does that work? |
use the latest version does not matter I changed nothing |
The problem isn't related to Hangfire. it's related to the SimpleAction (Pause, Resume, Trigger, ...) in the JobSchedulerService, which are not executed when the buttons are clicked. They are subscribed but never executed. Could you try with NuGet 4.242.4 to replicate the exact references I'm using? |
That's why I suspected #1083 but my tests show it works |
What can I do in the meantime? |
try 4.242.4.2 is the latest lab which for sure included #1083 |
Its working, thanks. |
The Trigger and Pause buttons in the Job Detail view do nothing.
The text was updated successfully, but these errors were encountered: