1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

20 commits

Author SHA1 Message Date
Mike Perham
85a1be3684 Switch all tests to use Minitest::Spec for consistency 2019-02-28 12:43:50 -08:00
Andrew Babichev
ddb0c8b3a8 Cleanup CLI (#4026)
* Refactor CLI test

Extracted 3 main parts:
- parse
- run
- signal handling

* Move demonization and pid write from parse to run phase

* Move queues default from validate to setup options phase

* Add pry-byebug gem

* Drop Sidekiq::Test

* Require launcher in CLI

* Remove TODOs
2018-12-03 13:24:37 -08:00
Mike Perham
72fe3289ea Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
Anton Davydov
1df36bc933 Improve schedule test speed 2016-01-09 04:27:49 +03: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
b182b117f1 Port the scheduler actor to bare threads 2015-10-02 21:07:09 -07:00
Mike Perham
53e6b9e2df Test suite overhaul
Remove Redis mocking.  Minimize Redis flushing where possible.
2015-09-23 10:56:37 -07:00
Mike Perham
bcbe9b258a Clean up warnings seen with RUBYOPT="-w", fixes #2402 2015-06-22 09:15:16 -07:00
Albert Llop
224cfe575c Use created_at for the time schedule jobs are scheduled
When a job is scheduled, it should have a created_at time, and get a
enqueued_at when it's actually enqueued back into a queue.
2015-06-03 19:28:41 +02:00
Lance Ivy
a382cb9a73 final name: average_scheduled_poll_interval 2015-05-04 10:38:10 -07:00
Lance Ivy
2deaa4401e simplify tests -- redis gets flushed entirely 2015-04-25 07:53:04 -07:00
Lance Ivy
4255aaf0c2 make the average global poller delay configurable 2015-04-24 19:31:58 -07:00
grosser
57a06d00d6 allow every test to be run with just ruby test/xxx_test.rb 2014-12-30 12:54:58 -08: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
babfdc96c5 Backport test suite to Minitest 4 so we can test against Rails 4. 2013-09-22 14:38:33 -07:00
Dimko
c7828f1fb8 Scheduled and retry jobs now executes client middleware 2013-05-24 16:31:55 +04:00
Mario Visic
fabe0e0fed Scheduled and retry jobs add an enqueued_at time when they are put into the queue 2013-05-24 13:32:49 +10:00
Mike Perham
4679c95f49 Upgrade to Minitest 5 2013-05-12 14:25:30 -07:00
Mike Perham
55726ca900 Add Sidekiq::Actor which provides a testable alternative to Celluloid 2013-05-10 22:12:44 -07:00
Brian Durand
0c76c3bade Change poller to pop messages one at a time so they don't get lost if something goes wrong during a large pop operation. 2013-04-10 17:38:36 -07:00