Mike Perham
d985aa35f0
Adjust middleware, fixes #5371
...
Middleware now has access to the `config` object so we can provide local helper methods.
2022-06-08 12:31:25 -07:00
Mike Perham
e7d154eeb5
Remove "worker" from codebase where possible
2022-03-03 12:37:25 -08:00
Bryan FRIMIN
32c55e3165
Use standardrb for source styling ( #4114 )
2019-04-01 09:20:41 -07:00
Bryan FRIMIN
12962c06ee
Fix locale reset mistake in the i18n middleware ( #4132 )
...
i18n library already wrap a way to reset the locale. The i18n Sidekiq
middleware implement a locale reset but it is not the same than i18n.
2019-03-27 09:33:39 -07:00
Mike Perham
2c9f7662fc
Freeze all string literals in source, fixes #2741
...
Tests pass and smoke test works perfectly.
2015-12-31 15:33:35 -08:00
Mike Perham
587520d0ba
better rdoc for i18n
2014-08-16 10:32:03 -07:00
Mike Perham
83aea0690e
Explicitly pass Redis associated with this job
...
When pushing a job, the middleware should be able to access the Redis instance associated with that job. Previously, Sidekiq was limited to one global Redis instance. Now that we want to support sharding, we have to explicitly pass the instance in OR hack up APIs with thread local variables. Explicit is better.
2014-03-25 21:38:17 -07:00
Mike Perham
4116e2516d
Reset locale to default, fixes #1415
2014-01-01 14:01:50 -08:00
Mike Perham
e753ff9615
Dont save i18n locale if already set, fixes #1011
2013-06-19 08:33:28 -07:00
Mike Perham
fe57c7d6dd
Add i18n middleware, fixes #750
2013-03-03 16:20:01 -08:00