Envek / Envek/after_commit_everywhere

Add `perform_after_commit` to ActiveJob jobs?

Open
#27 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
789
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Since it is a common use to use `after_commit` around ActiveJob calls (like in #19), would it make sense to add to this gem a `perform_after_commit` method to all ActiveJob jobs?

I use the following concern in my app:

```rb
module AfterCommitableJob
extend ActiveSupport::Concern

class_methods do
def perform_after_commit(...)
AfterCommitEverywhere.after_commit do
perform_later(...)
end
end
end
end
```

Would more people benefit from including this in `after_commit_everywhere` directly?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.