Closed ekuziel closed 8 months ago
in general u do not need to configure hangfire to default as you already used this (i guess)
[assembly: HostingStartup(typeof(HangfireStartup))]
[assembly: HostingStartup(typeof(HostingStartup))]
[assembly:HostingStartup(typeof(Xpand.XAF.Modules.Blazor.BlazorStartup))]
they configure hangfire, the rest of the integration is done from Xaf so you need the JobScheduler module as well in the RequiredModuleTypes collection
Thanks for a response Apostolis, I tried to configure only [assembly attributes which you mentioned. It doesn't work. I created simple sample, where I got:
Let me know
I am now working on another JobScheduler issue so I can verify that workers are created with this sample https://github.com/eXpandFramework/eXpand/issues/988#issuecomment-1516045038
can u test it ?
hi Apostolis, validated source from #988 -> hangfire schema wasn't created after first run (set to SQL server db instead localdb),
in solution is: GlobalConfiguration.Configuration.UseMemoryStorage();
I changed it to
var hangConnectionString = Configuration.GetConnectionString("HangFireConnectionString"); GlobalConfiguration.Configuration.UseSqlServerStorage(hangConnectionString);
looks like the view is configured for MasterDetailMode = ListViewAndDetailView u can change it on your side until there is a fix
this case is also fixed in the next minor
The pre-release 4.222.11.0 in the Reactive.XAF lab
branch includes commits that relate to this task:
To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).
Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.
If you do not use these packages directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.
Thanks a lot for your contribution.
Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.
𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻 Hi, I registered Reactive.XAF Job Scheduler module with Hangfire in application. After run of registered Job - the action has been executed succesfully and working as expected, but no data in workers grid occured, data in Hangfire table are populated but not in dbo.JobState and dbo.JobWorker.
Am I missing some configuration related to that XAF module ? Do you have some sample project with Reactive XAF modules ?
Hangfire configuration:
services.AddHangfire(configuration => configuration .UseSimpleAssemblyNameTypeSerializer() .UseRecommendedSerializerSettings() .UseSqlServerStorage(connectionString) );
Ractive XAF version 22.5, DevExpress XAF 22.5