Skip to content

Commit

Permalink
Bump Hangfire.Core to 1.8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Apr 23, 2024
1 parent e332254 commit 8c948c1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
4 changes: 2 additions & 2 deletions samples/ConsoleSample/ConsoleSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Hangfire.Core" Version="1.8.0" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.0" />
<PackageReference Include="Hangfire.Core" Version="1.8.12" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.12" />
</ItemGroup>

</Project>
14 changes: 4 additions & 10 deletions samples/ConsoleSample/HarnessHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,17 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
var sw = Stopwatch.StartNew();

Parallel.For(0, 250_000, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, i =>
Parallel.For(0, 25_000, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, i =>
{
_backgroundJobs.Enqueue(() => EmptyDefault());
_backgroundJobs.Enqueue(() => EmptyCritical());
_backgroundJobs.Enqueue("default" ,() => Empty());
_backgroundJobs.Enqueue("critical", () => Empty());
});

_logger.LogInformation($"Enqueued in {sw.Elapsed}");
return Task.CompletedTask;
}

[Queue("default")]
public static void EmptyDefault()
{
}

[Queue("critical")]
public static void EmptyCritical()
public static void Empty()
{
}
}
Expand Down
20 changes: 10 additions & 10 deletions samples/ConsoleSample/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
"net6.0": {
"Hangfire.AspNetCore": {
"type": "Direct",
"requested": "[1.8.0, )",
"resolved": "1.8.0",
"contentHash": "WlXDWCC0BxqihYOvRhOjO1/YMP7CpZmvPfwj4DfRrd/MOOwwo9BApFXxm8Wfj8OwbirGR8sMBFHkrEOY5/DC2Q==",
"requested": "[1.8.12, )",
"resolved": "1.8.12",
"contentHash": "H/+JePER6FTW/TcTvfEKRGVaRvY38pQHBB9xKGeKMUEOyMbm9tN5gMvT0ifFPCPj6cv1GMejvds7JVMqY01y9Q==",
"dependencies": {
"Hangfire.NetCore": "[1.8.0]"
"Hangfire.NetCore": "[1.8.12]"
}
},
"Hangfire.Core": {
"type": "Direct",
"requested": "[1.8.0, )",
"resolved": "1.8.0",
"contentHash": "YyQwi1iKCS4HsKnwUhY5dcyxOeJ0MqA/0gjeTJdMsCXufKl73I+y8mS5MbvQBIKMGcjv0FYzjLA+v31P6G+CRw==",
"requested": "[1.8.12, )",
"resolved": "1.8.12",
"contentHash": "EP2JbfDiOAo6Jo3VmQAbRm7Cq6tcldiI2V/xYYjilIGutWuhgxM7aP+uJW6sE5LAnrLL54ahYfBISJLdE1VimQ==",
"dependencies": {
"Newtonsoft.Json": "11.0.1"
}
},
"Hangfire.NetCore": {
"type": "Transitive",
"resolved": "1.8.0",
"contentHash": "F5hcmN8dNA+pXsOwZi/x+WFhcZPa6MICpmecbnLEyq92MUiHLfof5/dE6P0yJQg31awOSm6VRv8HgvHhUncqPA==",
"resolved": "1.8.12",
"contentHash": "SqkGar5IgfuoASoSZR1sggHy0Adagbgrf4h4HCkcRB3GTWgbAzRde4rBXOwUaLOlMgCsufALUN4BtE711EFzPQ==",
"dependencies": {
"Hangfire.Core": "[1.8.0]",
"Hangfire.Core": "[1.8.12]",
"Microsoft.Extensions.DependencyInjection.Abstractions": "3.0.0",
"Microsoft.Extensions.Hosting.Abstractions": "3.0.0",
"Microsoft.Extensions.Logging.Abstractions": "3.0.0"
Expand Down

0 comments on commit 8c948c1

Please sign in to comment.