Base solution for your next web application

Activities of "jur.porras"

Hi,

Even I throw an exception the hangfire always return succeeded.

sample code:

 try
{
    ...

}
catch (Exception e)
{
    throw new Exception($"Couldn't optimize route. Please check setup. Error: {e.Message}");
}

Please advise.

Hi ismcagdas,

We experiencing that jobs intended for a tenant is using server instances from the available servers regardless of regions.

For example:

Tenant1 has 10 jobs queued in the host db. Host db has many tenants, with different regions (south central & norhcentral). Those 10jobs is randomly selecting server from those tenants app services. Often will select the one's in northcentral, which cause latency issues - very slow.

I have checked the hangfire "Configuring Job Queues". The docs shows how to prioritize jobs in queue. I think this not applicable to our current situation. PLease advise.

Looking forward for your response.

Regards, Jur

Prerequisites

  • What is your product version? 10.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .Net Core

We have confirmed that hangfire is automatically chooses instances to our available servers. And is random. There are chances that when hangfire runs it goes to the server instance that has low specifications which cause or web app to break. Simple job which usuually done in a second finished after a several minutes or worst case, hours.

Maybe this is because the queues are stored in the host db? I am not sure if the issue we are experiencing is related to that. But if there's a possiblity setup that each tenant can manage their queues on their respective databases (not host) , hangfire will automatically chooses an instance provided to their app services.

Is there something to do in assigning the connection string? Currently we have this in our Startup file.

services.AddHangfire(config => { config.UseSqlServerStorage(_appConfiguration.GetConnectionString("Default")); ...

Please advise.

Regards, Jur

  • Which theme are you using? Theme 12
  • What are the theme settings? Default

Hi,

We just did upgrade our app from 8.2 to 10.2 The problem is we are using theme 12 in the old version, which is no longer available in the new one.

It force us to use the Default theme, and tediously update line by line html tags and css classes. Do you have other options handling this update, in my case using the old theme which no longer available in the new version?

Will you put back the theme12 in the future?

Got the same error. I am updatting from version 8.2 to 10.1

Prerequisites

Please answer the following quetions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 8.2
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

Just want to ask if ASpNet Zero has a way for setting up environment variables in a file. For example: A file (example: .env file) which consists of the settings that needed specific to a current environment either production of staging. In this way, we dont have to change setting each time we push to each branches. Example config or setting that could often change during development are database credentials, redis, mailing, etc...

Thanks

Question

Hangfire Question

How do I query the data from Hangfire tables databases. For example: I want to get the Details from the Hangfire.Job table. Is there a repository where I could use on getting this data? Or any other way?

Regards, Jur

I am using the multitenancy feature of the framework. Each tenant has its own database. The problem is, When I run query in my Hangfire Job class, It always getting data from the base database.

By the way, I am require to use unitofwork in able to fetch data without conflict with the tenant.

Example code below:

using (var unitOfWork = _unitOfWorkManager.Begin()) { _unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant, AbpDataFilters.MustHaveTenant);...

            ...

Queries outside of that unitofwork will not work because of tenant conlict errors. Though I am able to get data now in my Hangfire Job class, the data came from the base or parent database not in my subtenant database.

Can someone help?

Question

The jobs in Hangfire throws: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

This happens only in azure web server. What is the possible cause of it?

Answer

We just had updated our aspnet zero into 8.2

After the update, majority of our Linq does not work anymore. Like said above EF 3.0 is the caused of it.

Do you had a recommended approach/workaround on those query with GroupBy.?

Showing 1 to 10 of 20 entries