Skip to content

Commit a5d4750

Browse files
committed
Specify source of SolidQueue to ErrorReporter
Currently, the default value `application.active_support` is applied for source. This does not identify it as an exception raised inside SolidQueue. > source: a String about the source of the error. The default source is "application". Errors reported by internal libraries may set other sources; the Redis cache library may use "redis_cache_store.active_support", for instance. Your subscriber can use the source to ignore errors you aren't interested in. This is a quote from the [rails guide](https://github.com/rails/rails/blob/v8.0.0/guides/source/error_reporting.md?plain=1#L216-L220). Follow this guide to specify the source so that it can be determined that the error originated from inside SolidQueue. Fixes #446
1 parent 26f84a9 commit a5d4750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/solid_queue/app_executor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module SolidQueue
44
module AppExecutor
55
def wrap_in_app_executor(&block)
66
if SolidQueue.app_executor
7-
SolidQueue.app_executor.wrap(&block)
7+
SolidQueue.app_executor.wrap(source: "application.solid_queue", &block)
88
else
99
yield
1010
end

0 commit comments

Comments
 (0)