Itmo.Dev.Platform.BackgroundTasks 1.0.58

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Itmo.Dev.Platform.BackgroundTasks --version 1.0.58
                    
NuGet\Install-Package Itmo.Dev.Platform.BackgroundTasks -Version 1.0.58
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Itmo.Dev.Platform.BackgroundTasks" Version="1.0.58" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Itmo.Dev.Platform.BackgroundTasks" Version="1.0.58" />
                    
Directory.Packages.props
<PackageReference Include="Itmo.Dev.Platform.BackgroundTasks" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Itmo.Dev.Platform.BackgroundTasks --version 1.0.58
                    
#r "nuget: Itmo.Dev.Platform.BackgroundTasks, 1.0.58"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Itmo.Dev.Platform.BackgroundTasks&version=1.0.58
                    
Install Itmo.Dev.Platform.BackgroundTasks as a Cake Addin
#tool nuget:?package=Itmo.Dev.Platform.BackgroundTasks&version=1.0.58
                    
Install Itmo.Dev.Platform.BackgroundTasks as a Cake Tool

Itmo.Dev.Platform.BackgroundTasks

ExecutionMetadata

Execution metadata used for restoring task's execution progress from the point it was suspended.

Suspension can occur when task execution is cancelled due to application shutdown (when OperationCancelledException or TaskCancelledException is thrown).

In this case, execution metadata is persisted and would be loaded when task execution proceeds (when application is restarted).

You can use mutable model as execution metadata, modifying it as the execution process goes.
To avoid repeating operation execution (ensuring idempotency) modify execution metadata only when changes are persisted, ex: transaction is committed and you update page token of some long running operataion.

Configuration

collection.AddPlatformBackgroundTasks(backgroundTaskBuilder => backgroundTaskBuilder
    .ConfigurePersistence(persistenceConfiguration)
    .ConfigureScheduling(schedulingConfiguration)
    .ConfigureExecution(executionConfiguration)
    .AddBackgroundTask(task => task
        .WithMetadata<TestBackgroundTaskMetadata>()
        .WithResult<TestBackgroundTaskResult>()
        .WithError<EmptyError>()
        .HandleBy<TestBackgroundTask>()));

Schema

Persistence configuration
{
  "SchemaName": string
}
  • SchemaName
    Name of a PostgreSQL schema to store background task data
Scheduling configuration
{
  "BatchSize": int,
  "PollingDelay": timespan,
  "SchedulerRetryCount": int,
  "SchedulerRetryDelays": [int]
}
  • BatchSize
    Number of tasks fetched per enqueuing run
  • PollingDelay
    Delay between enqueuing runs
  • SchedulerRetryCount
    Count of retries that hangfire will do, before marking task failed
  • SchedulerRetryDelays
    Delay between hangfire retries, index corresponds to retry number
Execution configuration
{
  "MaxRetryCount": int
}
  • MaxRetryCount
    Count of enqueueing retries for before task is moved into failed state
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Itmo.Dev.Platform.BackgroundTasks:

Package Downloads
Itmo.Dev.Platform.BackgroundTasks.Postgres

Package Description

Itmo.Dev.Platform.BackgroundTasks.Hangfire

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.288 129 5/17/2025
2.2.282 206 5/11/2025
2.2.275 82 5/10/2025
2.2.271 69 5/10/2025
2.2.269 79 5/10/2025
2.2.267 163 3/2/2025
2.2.265 129 2/27/2025
2.2.263 124 2/27/2025
2.2.261 138 2/16/2025
2.2.255 137 2/6/2025
2.2.234 306 11/18/2024
2.2.204 222 10/29/2024
2.2.202 116 10/29/2024
2.1.196 121 10/29/2024
2.1.193 101 10/29/2024
2.1.190 107 10/26/2024
2.0.174 124 10/25/2024
2.0.133 123 10/25/2024
2.0.132 131 10/24/2024
2.0.131 125 10/24/2024
2.0.130 120 10/24/2024
2.0.129 125 10/24/2024
2.0.128 126 10/24/2024
2.0.127 116 10/23/2024
2.0.126 127 10/11/2024
2.0.125 123 10/11/2024
2.0.124 120 10/11/2024
2.0.123 125 10/11/2024
2.0.122 131 10/11/2024
2.0.121 127 10/11/2024
2.0.120 133 10/11/2024
2.0.119 129 10/11/2024
2.0.118 138 10/11/2024
2.0.117 125 10/10/2024
2.0.115 127 10/10/2024
2.0.113 128 10/6/2024
2.0.112 187 8/22/2024
2.0.111 171 5/14/2024
2.0.110 134 5/13/2024
2.0.109 120 5/13/2024
2.0.108 169 5/6/2024
2.0.107 165 5/6/2024
2.0.106 196 5/6/2024
1.2.105 137 5/4/2024
1.2.102 141 5/4/2024
1.2.101 145 4/26/2024
1.2.100 146 4/22/2024
1.2.99 139 4/21/2024
1.2.98 114 4/21/2024
1.1.97 128 4/19/2024
1.1.96 123 4/18/2024
1.1.95 122 4/18/2024
1.1.94 165 2/13/2024
1.1.93 156 2/10/2024
1.1.91 131 2/10/2024
1.1.90 115 2/10/2024
1.1.89 280 2/3/2024
1.1.86 135 2/1/2024
1.1.85 137 1/30/2024
1.1.83 179 1/27/2024
1.1.82 216 1/5/2024
1.1.81 272 1/3/2024
1.1.80 140 12/30/2023
1.1.79 138 12/30/2023
1.1.78 165 12/30/2023
1.1.77 159 12/28/2023
1.1.76 154 12/27/2023
1.1.75 197 12/9/2023
1.1.73 194 11/30/2023
1.1.72 176 11/27/2023
1.1.71 177 11/27/2023
1.1.70 154 11/27/2023
1.1.69 143 11/27/2023
1.0.67 175 11/25/2023
1.0.66 149 11/25/2023
1.0.65 176 11/23/2023
1.0.64 164 11/23/2023
1.0.62 156 11/18/2023
1.0.61 157 11/18/2023
1.0.60 141 11/17/2023
1.0.59 149 11/16/2023
1.0.58 139 11/13/2023
1.0.57 135 11/12/2023
1.0.56 159 11/12/2023
1.0.54 215 11/7/2023

Added BackgroundTasks