Mike Perham
3dafe00be1
Merge pull request #33 from jc00ke/config-file
...
Adding config file CLI flag
2012-02-16 12:24:53 -08:00
jc00ke
e9fcc2ecda
Refactor options parsing from config file
...
Merge the hashes instead of explicit setting. Also switch the yml config
file to :foo: instead of foo: so the keys will be parsed as symbols.
This matches the @options keys.
2012-02-16 10:51:26 -08:00
jc00ke
ea8c9f72b5
Standardize on concurrency, not processor_count
2012-02-16 09:45:55 -08:00
jc00ke
6f22320aee
Adding config file CLI flag
...
See test/config.yml for an example file.
`sidekiq -C /path/to/config.yml` will use any settings set in the file.
Flags passed to sidekiq will override any set in the config file. So, if
config.yml looked like:
---
concurrency: 50
`sidekiq -C /path/to/that/config.yml -c 75` will set the concurrency to
75.
2012-02-15 18:13:32 -08:00
Mike Perham
c1e74b59f7
Merge pull request #32 from jc00ke/pidfile
...
Adding pidfile option
2012-02-15 12:03:47 -08:00
Mike Perham
ac5d879361
Add .registered_workers and .registered_queues to Sidekiq::Client
2012-02-15 11:28:19 -08:00
jc00ke
d98617b873
Use -P for pidfile flag
2012-02-15 11:24:01 -08:00
jc00ke
0f248f3412
Adding pidfile option
2012-02-15 11:01:52 -08:00
Mike Perham
b210dd788c
Update Sidekiq logging to use standard Ruby logger
2012-02-14 09:00:26 -08:00
Mike Perham
552a4c7f27
CLI testing. Not great but integration testing is tough.
2012-02-12 19:53:34 -08:00
Mike Perham
f9af66edd7
Rework redis connections so that the manager and
...
the client use separate pools.
This is so the Rails app Sidekiq::Client and
Sidekiq::Manager can use different configurations.
Also, fix issue where workers were not unregistered
in Redis upon shutdown.
2012-02-11 13:14:03 -08:00
Mike Perham
b9bb5b7699
Fix issue with workers stat set
2012-02-10 23:32:42 -08:00
Mike Perham
23651d5196
First pass at Resque-compatible processing stats
2012-02-10 23:16:12 -08:00
Mike Perham
a8226227c4
Update testing infrastructure
2012-02-10 20:30:14 -08:00
Mike Perham
fd46c5471a
Client workers can now define associated queue
...
Configure client middleware chain by default
Middleware entries should be unique
Change client#push to return boolean based on pushed or not.
2012-02-10 20:20:01 -08:00
Mike Perham
69b00cfe50
Minimize annoying warnings
2012-02-09 22:33:36 -08:00
Ryan LeCompte
19527698c9
minor cleanup of RedisConnection
2012-02-09 22:03:05 -08:00
Ryan LeCompte
3fdb26b4db
minor cleanup of RedisConnection
2012-02-09 22:00:40 -08:00
Mike Perham
f89eedf326
Add new sidekiq/testing feature.
...
This makes job processing synchronous when required.
2012-02-09 21:46:44 -08:00
Mike Perham
a1f78816a7
Implement generic Ruby support via simple require flag
...
Various cleanups
It's "assert_equal(expected, actual)"
2012-02-09 20:32:59 -08:00
Max Spransy
c34ec108a4
Move redis connection logic into class. Add support for namespaces via redis-namespace gem
2012-02-09 10:26:43 -06:00
Ryan LeCompte
2399d13dbb
add tests for non-yielding middleware
2012-02-08 17:28:12 -08:00
Ryan LeCompte
c3609d6d48
refactor middleware into client/server layers
2012-02-08 17:04:02 -08:00
Ryan LeCompte
1a028c4a2f
introduce middleware for cleanup of encoded payloads
2012-02-07 17:18:28 -08:00
Ryan LeCompte
62045af3d5
add unique payloads support, addresses issue #4
2012-02-07 03:29:09 -08:00
Ryan LeCompte
2d42f3df42
use TimedQueue from connection_pool
2012-02-06 22:35:14 -08:00
Ryan LeCompte
144bc904cf
rework how middleware chain is invoked, add middleware tests and cleanup
2012-02-04 21:45:34 -08:00
Mike Perham
92c51c5785
Add full multithreaded integration test for manager
2012-02-03 10:02:57 -08:00
Mike Perham
b77e8795ca
Work around Celluloid issue #22 causing hung tests
2012-01-29 14:35:16 -08:00
Mike Perham
1a03aa203f
A small but vital fix, self != current_actor
2012-01-26 13:02:47 -08:00
Mike Perham
922d5f8dbe
Add Sidekiq::Processor testing, with bug fixes
2012-01-26 12:45:04 -08:00
Mike Perham
83db466fe9
Fix perform_async, thanks @ryanlecompte
2012-01-25 13:53:00 -08:00
Mike Perham
4043cace3a
SimpleCov fixes
2012-01-23 22:07:21 -08:00
Mike Perham
e7ae72d3d3
More client testing
2012-01-23 12:56:49 -08:00
Mike Perham
14bd63705a
Documentation, start client work
2012-01-21 16:42:21 -08:00