Skip to content

Commit

Permalink
bump version to 0.5.4 and add new config details to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoar committed Apr 5, 2024
1 parent 75c6ac8 commit 4ae6564
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
43 changes: 30 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,28 @@ migration paths where possible.

## Table of Contents

* [Getting Started](#getting-started)
* [Basic Usage](#basic-usage)
* [Running a worker process](#running-a-worker-process)
* [Enqueuing Jobs](#enqueuing-jobs)
* [Operational Considerations](#operational-considerations)
* [Monitoring Jobs & Workers](#monitoring-jobs--workers)
* [Lifecycle Hooks](#lifecycle-hooks)
* [Priority-based Alerting Threshholds](#priority-based-alerting-threshholds)
* [Continuous Monitoring](#continuous-monitoring)
* [Configuration](#configuration)
* [Migrating from other ActiveJob backends](#migrating-from-other-activejob-backends)
* [Migrating from DelayedJob](#migrating-from-delayedjob)
* [How to Contribute](#how-to-contribute)
- [Delayed](#delayed)
- [Why `Delayed`?](#why-delayed)
- [Table of Contents](#table-of-contents)
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Running a worker process](#running-a-worker-process)
- [Enqueuing Jobs](#enqueuing-jobs)
- [Other ActiveJob Features](#other-activejob-features)
- [Operational Considerations](#operational-considerations)
- [Co-transactionality](#co-transactionality)
- [At-Least-Once Delivery](#at-least-once-delivery)
- [When Jobs Fail](#when-jobs-fail)
- [Monitoring Jobs \& Workers](#monitoring-jobs--workers)
- [Lifecycle Hooks](#lifecycle-hooks)
- [Priority-based Alerting Threshholds](#priority-based-alerting-threshholds)
- [Continuous Monitoring](#continuous-monitoring)
- [Configuration](#configuration)
- [Migrating from other ActiveJob backends](#migrating-from-other-activejob-backends)
- [Migrating from DelayedJob](#migrating-from-delayedjob)
- [How to Contribute](#how-to-contribute)
- [Suggested Workflow](#suggested-workflow)

## Getting Started

Expand Down Expand Up @@ -491,6 +500,14 @@ Delayed::Worker.min_priority = nil
Delayed::Worker.max_priority = nil
```

Job priorities can specified by using the name of the desired range (i.e. :user_visible).
By default, the value for a named priority will be the first value in that range.
To set each priority's default value to the middle of its range (i.e. 15 for :user_visible), Delayed::Priority can be configured with:

```ruby
Delayed::Priority.assign_at_midpoint = true
```

Logging verbosity is also configurable. The gem will attempt to default to `Rails.logger` with an
"info" log level.

Expand Down
2 changes: 1 addition & 1 deletion delayed.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.summary = 'a multi-threaded, SQL-driven ActiveJob backend used at Betterment to process millions of background jobs per day'

spec.version = '0.5.3'
spec.version = '0.5.4'
spec.metadata = {
'changelog_uri' => 'https://github.com/betterment/delayed/blob/main/CHANGELOG.md',
'bug_tracker_uri' => 'https://github.com/betterment/delayed/issues',
Expand Down

0 comments on commit 4ae6564

Please sign in to comment.