Xing Xing
14f4df8ede
Joe helped us greatly
10 years ago
Xing Xing
c8d59ea348
Merge branch 'master' into 0.2-dev
10 years ago
Xing
c6c0d4f481
Merge pull request #43 from draxil/master
Handling disconnects
10 years ago
Joe Higton
6cf2680431
Merge branch 'worker_disconnect_testing'
10 years ago
Joe Higton
99bcf11768
FIX: The error handler is not called on disconnect
Using the disconnect test showed the agent was silently closing on disconnect
10 years ago
Joe Higton
827cf3fa3e
Removed old gearman from travis
gearman-go and original gearmand don't play well, possibly an issue?
10 years ago
Joe Higton
7ddad76b85
Early stab at disconnect handling test
10 years ago
Joe Higton
e0614657e0
Added the original gearmand to travis for testing:
1. It's easier to test with (it installs in the regular path), we need to start and stop it for network error tests
2. Can't hurt to test with both implementations!
10 years ago
Joe Higton
912db95c0a
FIX: waiting for worker fireup was making the test slow
Dodging the race condition with a sleep was fine, but we slept
for a whole second which was longer than this test takes to run!
I've scaled the sleep down to 250 miliseconds and increased the tries.
Even this is probably excessively long but now the test is fast agin.
10 years ago
Joe Higton
2f72b28d76
FIX: waiting for worker fireup was making the test slow
Dodging the race condition with a sleep was fine, but we slept
for a whole second which was longer than this test takes to run!
I've scaled the sleep down to 250 miliseconds and increased the tries.
Even this is probably excessively long but now the test is fast agin.
10 years ago
Xing
320155c608
Merge pull request #41 from draxil/master
Better Work() without Ready() behaviour, now with improved tests!
10 years ago
Joe Higton
0a4489d1fe
Fixed and improved Work() without Ready() test:
* FIX: committed test froze
* FIX: committed test had a race condition!
* Added properly handled panic test
* Timeouts so that these tests should fail now if something goes wrong instead of failing.
10 years ago
draxil
6688c29c37
Enahanced Work() without Ready() behaviour:
Now if you try to call Work() without calling Ready(), it will trigger an attempt to run Ready(), and will only panic if there is an error.
10 years ago
Xing
3232b11d83
Merge pull request #38 from draxil/master
More helpful panic if you call Work() before you call Ready()
10 years ago
Joe Higton
24e93b4a2c
More helpful panic if you call Work() before you call Ready()
10 years ago
Xing
e9ce09b885
Merge pull request #36 from rlmcpherson/master
Make pool clients safe for concurrent access with mutex.
10 years ago
Randall McPherson
0591572d8e
Make pool clients safe for concurrent access with mutex.
10 years ago
Xing Xing
6910d548be
added Kevin to the contributors list
10 years ago
Xing Xing
5334b50533
fixed #34
10 years ago
Xing Xing
da3d31662b
added Damian to contributors
10 years ago
Xing Xing
9d7a29fe26
Merge branch 'master' into 0.2-dev
10 years ago
Xing
9dd9be1712
Merge pull request #32 from dgryski/printf-fixes
Printf fixes
10 years ago
Damian Gryski
7229235a4f
Use %v instead of %V, which is not a valid Printf verb
10 years ago
Damian Gryski
ad0d49dcb2
Use fmt.Errorf() instead of errors.New(fmt.Sprintf())
10 years ago
Xing Xing
09542d7176
update examples
10 years ago
Xing Xing
76c76995d5
removed ErrLostConn from worker
10 years ago
Xing Xing
78813cb052
Merge branch 'master' into 0.2-dev
10 years ago
Xing Xing
f880354a61
type assertion with *net.OpError
10 years ago
Xing Xing
45a9d7c3e5
fixed #31
10 years ago
Xing
7ea5fa7550
Merge pull request #30 from mikespook/0.2-dev
SUBMIT_JOB_SCHED is deprecated, worker.Immediately should be removed.
10 years ago
Xing Xing
0a6bacbe82
SUBMIT_JOB_SCHED is deprecated, worker.Immediately should be removed.
10 years ago
Xing
0458d8c2b3
Merge pull request #29 from sgrimee/patch-2
Clarify timeout option in Readme
10 years ago
Sam Grimee
ed8c829c2f
Clarify timeout option in Readme
worker.Immediately has value 2 which means the job will timeout after 2 seconds (maybe not very intuitive?). To have no timeout one has to pass the value 0 which is also constant worker.Unlimited (more intuitive)
10 years ago
Xing Xing
3a5d89c67a
fixed typo, issue #27
10 years ago
Xing Xing
c4efc59d78
no author but contributors
10 years ago
Xing Xing
98a935207b
fixed issue #27
10 years ago
Xing Xing
2bd19fb2fb
Merge branch 'master' into 0.2-dev
10 years ago
Xing
9729de017c
Merge pull request #25 from sgrimee/patch-1
Read all data before decoding incoming packet
10 years ago
Sam Grimee
221e11861f
keep already received data if not enough to decode
10 years ago
Sam Grimee
885609309c
Continue reading incoming data until enough rcvd
This fixes the case of a large packet being received, the current code stops processing as soon as >12 bytes are received,
10 years ago
Xing Xing
87631cc2e5
go fmt & better examples
10 years ago
Xing Xing
e701be9288
Merge branch 'master' into 0.2-dev
10 years ago
Xing Xing
57337a6004
Merge branch 'master' of github.com:mikespook/gearman-go
10 years ago
Xing Xing
76196899f8
fxied issue #20
10 years ago
Xing Xing
47d03a8bb1
fixed WORK_STATUS package size
10 years ago
Xing Xing
e0171b4bde
Merge branch 'master' into 0.2-dev
10 years ago
Xing
7f46dbc038
Merge pull request #23 from 300brand/feature-recall
Bring back ability to get function name
10 years ago
jake
94b00affec
Bring back ability to get function name
10 years ago
Xing
26ea07a917
Merge pull request #22 from azylman/master
expose job handle/uniqueId
10 years ago
Alex Zylman
90f2fd21e8
expose job handle/uniqueId
10 years ago