Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:06
    sseyalioglu opened #1849
  • Apr 19 22:20
    caveofjulian commented #1310
  • Apr 18 08:53
    jonny-xhl commented #558
  • Apr 17 00:39
    ghd258 opened #1848
  • Apr 16 11:26
    Build #3423 passed
  • Apr 16 11:25
    odinserj commented #1846
  • Apr 16 11:15

    odinserj on dev

    Shorten the cancellation reason (compare)

  • Apr 15 21:39
    howcheng opened #1847
  • Apr 15 18:15
    pkunze closed #1846
  • Apr 15 18:15
    pkunze commented #1846
  • Apr 15 15:25
    Build #3422 passed
  • Apr 15 15:00
    pkunze commented #1846
  • Apr 15 14:49
    odinserj commented #1846
  • Apr 15 14:46

    odinserj on v1.8.0-beta2

    (compare)

  • Apr 15 14:45
    Build #3418 passed
  • Apr 15 14:44
    pkunze commented #1846
  • Apr 15 14:42
    pkunze commented #1846
  • Apr 15 14:34

    odinserj on dev

    Annotate RecurringJob parameter… Add methods with RecurringJobOp… (compare)

  • Apr 15 14:03
    pkunze commented #1846
  • Apr 15 13:58

    odinserj on v1.8.0-beta2

    (compare)

noob
@noobwu
use SqlServerStorage datetime is not localtime ?
Where is this going to be configured
Julius Bacosa
@EmpeRoar
Hi Guys, how to setup up recurring job every 2 weeks start every monday
Alan Ball
@voronoipotato
Does Hangfire support the kind of exponential decay job restart that sidekiq does?
sorry "exponential backoff"
for context
Sidekiq will retry failures with an exponential backoff using the formula (retry_count * 4) + 15 + (rand(30) (retry_count + 1)) (i.e. 15, 16, 31, 96, 271, ... seconds + a random amount of time). It will perform 25 retries over approximately 21 days. Assuming you deploy a bug fix within that time, the job will get retried and successfully processed. After 25 times, Sidekiq will move that job to the Dead Job queue, assuming that it will need manual intervention to work.
Miguel Cudaihl
@Miggleness
Job Queue in Hangfire - is it possible to have 1 queue for a particular job and jobs in this queue are executed one at a time. Workers can be spreadout in multiple nodes.
Yann
@kYann
Hi Everyone
I'm looking for a way to call Commit after job execution. Of course I need to check if there was no exception before. I wanted to use filters, but the scope seems disposed before. I took a look at JobActivator but I don't need know how to access the exception if there was one
Any idea on how I could do that ?
Gordon D
@tekguy
hello, I am looking to use HangFire for an upcomming project. The only thing left I am trying to figure out is how to go about assigning a job to a hang fire server. If I have 3 different servers, how can I set it so a job always runs on one server (we have an instance where one of the hang fire servers will be on the internet for communication with another service)
mhov
@mhov
@odinserj was there a change to accounts on http://nuget.hangfire.io/feeds/hangfire-pro ? my crendentials suddenly aren't working
Kyle White
@kdubau
@tekguy i think you can have multiple queues to accomplish this. say you have a "general" queue and a "server1-queue" - all your servers will be configured to execute jobs in the general queue, but only server1 would handle jobs in the "server1-queue"
so when you want a job to run on server1, put it in that q
Daniel Bogdan
@bogdandanielb
Anyone using .NET Core 2.2 Generic Host + IHostedService + AutoFac + Hangfire? Got some issue with recurrent jobs container liftetime on second run.
Alexey Bogdan
@AlexeyBogdan95
Exception is Query processor could not produce a query plan because of the hints defined in this query. Resubmit the query without specifying any hints and without using SET FORCEPLAN.
Alexey Bogdan
@AlexeyBogdan95
Hi! I’m using Hangfire.SqlServer 1.6.22. On production we use SQL Server 2012. As for SQL Server 2016, it works fine. You could see the exception above.
Nicholas Budd
@anaximander23
I'm updating an app from a year or so ago, and I'm seeing an odd change in behaviour in Hangfire
so, for various reasons, this app hides Hangfire behind a "job scheduler" class
so, outside that class, the code doesn't interact with Hangfire
the code I'm looking at allows you to schedule a task to run at a certain time, and needs to specify a queue name so that we can ensure that tasks are handled in the correct priority order
and because this code doesn't touch Hangfire directly, it doesn't use the attributes to specify queues
(design decision that I'm stuck with)
in the old app, we have this:
public void ScheduleTask<T>(Expression<Action<T>> methodCall, string queueName, DateTime startTime)
{
    var jobClient = new BackgroundJobClient();
    var state = new EnqueuedState(queueName);

    BackgroundJob.Schedule(() => jobClient.Create(methodCall, state), startTime);
}
this schedules a task for the future, and that task queues the actual work to be run now, on the correct queue
Nicholas Budd
@anaximander23
the new app is ASP.NET Core, and this code throws an exception with the message "Anonymous functions, delegates and lambda expressions aren't supported in job method parameters: it's very hard to serialize them and all their scope in general"
that error message makes perfect sense
...but it definitely worked in the older app
can anyone tell me what I might be missing?
Nicholas Budd
@anaximander23
Failing that, is there a way I can schedule tasks for the future and still provide a queue name?
Alexey Bogdan
@AlexeyBogdan95
Hi! Could you help me with HangfireIO/Hangfire#1435 ? Thanks!
Nicholas Budd
@anaximander23
this might be that I've missed something obvious
but
Hangfire is logging to the Windows Event Log every time it polls for jobs, and I'd like it to not do that
how do I make it stop?
Jay
@shenjielx
a little modify, but i need it. can it merged? HangfireIO/Hangfire#1630
Jay
@shenjielx
image.png
hangfire auto check is broken about sqlserver? but i don’t update it.
Drew Burlingame
@drewburlingame
Hi All. I'm looking for information on perf limits and best practices for hangfire. We're looking at processing 500K/day jobs with millions of jobs scheduled, some scheduled months in the future. The jobs will publish events to a message queue. Is this a good fit for Hangfire or would something like Quartz be a better fit? Thanks.
I've googled and bing'd bug cannot find any substantial references for perf limits. Is there documentation or guides for max practical throughput and limit of scheduled jobs?
himrliu
@lcb1208
I use BackgroundJobClient.Schedule to one job , when job fail,it will not bind old queue,but default
Kasper Toft Andersen
@toftware
Is there any way i can tweak Hangfire to be faster, i seem to hit some sort of bottleneck, which i think is locks in the db
This message was deleted
This message was deleted
Kasper Toft Andersen
@toftware
These are my database options
.UseSqlServerStorage(settings.GetConnectionString(), new SqlServerStorageOptions
{
    CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
    SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
    QueuePollInterval = TimeSpan.Zero,
    UseRecommendedIsolationLevel = true,
    UsePageLocksOnDequeue = true,
    DisableGlobalLocks = true,
    UseFineGrainedLocks = false,
});
Anybody know anything about this issue?
arunprasathv
@arunprasathv
Hello, I'm looking to unit test hangfire jobs. HF job is running as a windows service with multiple job processor. Is there any good sample that i can start with.
Yi HAN
@yhan
Hi, I'am new for Hangfire.
I would like to know for RecurringJob, a dedicated thread is used or hangfire uses threadpool ?