配置并行数¶ 后台任务由在Hangfire Server的子系统中运行的专用工作线程池进行处理。当您启动后台任务服务器时,它将初始化线程池并启动固定的worker。您可以通过将值传递给 UseHangfireServer 方法来指定并行数。 var options = new BackgroundJobServerOptio...
Configuring Job Queues¶ Hangfire can process multiple queues. If you want to prioritize your jobs or split the processing across your servers (some processes the archive queue, o...
Configuring the degree of parallelism¶ Background jobs are processed by a dedicated pool of worker threads that run inside Hangfire Server subsystem. When you start the backgroun...
配置¶ 该包提供了GlobalConfiguration类的扩展方法。 使用任何你拥有的SQL Server的 连接字符串 或者连接名称。 GlobalConfiguration . Configuration // Use connection string name defined in `web.config` or `app.co...
Using Batches¶ Pro Only This feature is a part of Hangfire Pro package set Batches allow you to create a bunch of background jobs atomically. This means that if there was an e...