Open Closed

Disable Azure Service Bus in staging slot #6735


User avatar
0
pablo@ccalp.net created
  • ABP Framework version: v7.4.x
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

I'm deploying ABP to Azure app services, I'm worried that the messages I'm sending using the service bus end up in the staging slot and are processed by an outdated version of my application. I can see in application insights that both my production and staging slots are connected to the same topic. Does the framework already control that or do I have to somehow disable the service bus on the staging slot?

I was having the same issue with Hangfire, but I solved it this way:

    Configure<AbpBackgroundJobOptions>(options =>
    {
        options.IsJobExecutionEnabled = !hostingEnvironment.IsStaging();
    });

Thanks.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can override the DistributedEventBus in Stating and then do nothing.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11