Commit Graph

197 Commits

Author SHA1 Message Date
mikespook
e4172dec11 replease ErrQueue to ErrFunc, add a limitation to executing job 2012-05-10 21:25:33 +08:00
mikespook
f7896651a4 upgraded to the newest golib 2012-04-09 09:26:06 +08:00
mikespook
59e061e094 merge 2012-03-28 11:33:12 +08:00
mikespook
b1bfc93f91 all jobs should be done, befor processing loop exited. 2012-03-28 11:27:57 +08:00
mikespook
b8ec3fd242 Modified the api, added the interrupt for the example. 2012-03-27 22:48:03 +08:00
mikespook
79e383a639 added new lines. 2012-03-26 14:10:15 +08:00
mikespook
e0c1537e8e code refactoring, upgrade to GO1 RC2
--HG--
rename : README => README.md
rename : src/gearman/client.go => gearman/client/client.go
rename : src/gearman/client_test.go => gearman/client/client_test.go
rename : src/gearman/clientjob.go => gearman/client/clientjob.go
rename : src/gearman/gearman.go => gearman/gearman.go
rename : src/gearman/jobagent.go => gearman/worker/jobagent.go
rename : src/gearman/worker.go => gearman/worker/worker.go
rename : src/gearman/worker_test.go => gearman/worker/worker_test.go
rename : src/gearman/workerjob.go => gearman/worker/workerjob.go
2012-03-26 13:32:59 +08:00
mikespook
85a02820fc Upgrade to weekly.2011-12-14 2011-12-28 17:59:44 +08:00
mikespook
5c13b0923b rename the jobClient into jobAgent.
--HG--
rename : src/gearman/jobclient.go => src/gearman/jobagent.go
2011-10-11 11:20:01 +08:00
mikespook
e34d969e47 Fix bugs in example codes. 2011-10-09 17:53:55 +08:00
mikespook
68801a66fe the Job was out of use. 2011-09-26 14:25:14 +08:00
mikespook
4b8306e3bd For the goinstall command, move files out of sub-dir.
--HG--
rename : src/gearman/client/job.go => src/gearman/clientjob.go
rename : src/gearman/worker/jobclient.go => src/gearman/jobclient.go
rename : src/gearman/worker/job.go => src/gearman/workerjob.go
2011-09-26 11:56:24 +08:00
mikespook
e902ac0573 Move the source files from src/ to src/gearman/.
--HG--
rename : src/Makefile => src/gearman/Makefile
rename : src/client.go => src/gearman/client.go
rename : src/client/job.go => src/gearman/client/job.go
rename : src/client_test.go => src/gearman/client_test.go
rename : src/gearman.go => src/gearman/gearman.go
rename : src/worker.go => src/gearman/worker.go
rename : src/worker/job.go => src/gearman/worker/job.go
rename : src/worker/jobclient.go => src/gearman/worker/jobclient.go
rename : src/worker_test.go => src/gearman/worker_test.go
2011-09-17 16:53:17 +08:00
mikespook
4bf2f63f4d Move the source files from src/pkg/gearman to src/.
--HG--
rename : src/pkg/gearman/Makefile => src/Makefile
rename : src/pkg/gearman/client.go => src/client.go
rename : src/pkg/gearman/client/job.go => src/client/job.go
rename : src/pkg/gearman/client_test.go => src/client_test.go
rename : src/pkg/gearman/gearman.go => src/gearman.go
rename : src/pkg/gearman/worker.go => src/worker.go
rename : src/pkg/gearman/worker/job.go => src/worker/job.go
rename : src/pkg/gearman/worker/jobclient.go => src/worker/jobclient.go
rename : src/pkg/gearman/worker_test.go => src/worker_test.go
2011-09-17 16:41:28 +08:00
mikespook
c66d460235 damn 2011-09-06 18:04:14 +08:00
mikespook
c167025a3a a test for filenames
--HG--
rename : src/pkg/gearman/client_job.go => src/pkg/gearman/clientjob.go
rename : src/pkg/gearman/worker_job.go => src/pkg/gearman/workerjob.go
rename : src/pkg/gearman/worker_jobclient.go => src/pkg/gearman/workerjobclient.go
2011-09-06 16:38:49 +08:00
mikespook
baf23ea5e1 revert package name 2011-09-06 16:34:38 +08:00
mikespook
bb1d756cb4 fixed for goinstall
--HG--
rename : src/pkg/gearman/client/job.go => src/pkg/gearman/client_job.go
rename : src/pkg/gearman/worker/job.go => src/pkg/gearman/worker_job.go
rename : src/pkg/gearman/worker/jobclient.go => src/pkg/gearman/worker_jobclient.go
2011-09-06 16:31:15 +08:00
mikespook
e50c4533af gofix for go's weekly version: weekly.2011-09-01 2011-09-05 12:41:53 +08:00
mikespook
6290a8ace6 Added benchmark for uint to byte or byte to uint. 2011-06-20 15:43:17 +08:00
Jonathan Wills
22866616cd splitByteArray -> bytes.Split, fixed bug in the process. 2011-05-29 01:54:02 -04:00
mikespook
28ac570cbc fixed issue #1, user data could contain '\x00' NULL byte now 2011-05-28 12:27:27 +08:00
mikespook
76f61da7ff do not export the raw read() and write() 2011-05-27 14:33:53 +08:00
mikespook
a8e7241a55 Added tag native.start for changeset 0dc8bc71d7e8 2011-05-25 11:14:03 +08:00
mikespook
ba521f65b8 Added tag 2011-05-24 for changeset b68aee2a4881 2011-05-24 17:08:07 +08:00
mikespook
1ad734ceb4 Added upload.py for codereview; README in Chinese. 2011-05-24 14:53:50 +08:00
mikespook
7a4bbcdc55 Format codes by gofmt. 2011-05-24 13:20:22 +08:00
mikespook
82f0ab2cd5 Could not trust os.EOF as the end of msg's mark. 2011-05-24 12:21:49 +08:00
mikespook
7eb966bc36 Added some comments. 2011-05-23 12:15:48 +08:00
mikespook
2d62a1d5d1 Added python script for testing 2011-05-22 23:02:03 +08:00
mikespook
da43d2efe5 Tall server 'reset it' and clean the map. 2011-05-22 22:43:14 +08:00
mikespook
b4a6f133e1 The first workable version, both worker and client. 2011-05-22 22:16:30 +08:00
mikespook
f6d2a16685 Great. We got it. The client do the job correctly. 2011-05-21 21:11:29 +08:00
mikespook
d8882938f7 no eof got invalid package, would modify the depack method 2011-05-21 12:32:44 +08:00
mikespook
016dd669aa The client can work now...with some known bugs. :( 2011-05-20 17:38:10 +08:00
mikespook
c5b9f19962 Added 'Do' function to the client. 2011-05-19 23:29:34 +08:00
mikespook
2f4eb65c85 Added the client
--HG--
rename : src/pkg/gearman/gearman_test.go => src/pkg/gearman/worker_test.go
2011-05-19 20:10:53 +08:00
mikespook
bf0c48b87f Fixed a bug, that encoding the job but without the handle infomation. 2011-05-19 14:39:31 +08:00
mikespook
a6fab88b22 added the example for worker 2011-05-18 20:24:59 +08:00
mikespook
50411ee1a9 The worker's protocol can work now. See example/worker.go
--HG--
rename : src/pkg/gearman/job.go => src/pkg/gearman/worker/job.go
rename : src/pkg/gearman/jobclient.go => src/pkg/gearman/worker/jobclient.go
2011-05-18 19:40:03 +08:00
mikespook
ed5d1951ef Added worker.Write 2011-05-17 20:32:36 +08:00
mikespook
f1d7cdee50 fixed the test 2011-05-17 18:22:12 +08:00
mikespook
ecbc4f5945 Job server can echo sth. to worker now. Added files. 2011-05-17 18:13:17 +08:00
mikespook
dcd42b5c91 Job server can echo sth. to worker now. 2011-05-17 18:12:40 +08:00
mikespook
364744ff92 Native way is better than c-wrap. 2011-05-16 17:26:32 +08:00
mikespook
d7a1ea0e6b Added a socket client, just for test. 2011-03-16 20:34:07 +08:00
mikespook
153066eb03 finished some worker's apis. 2011-03-15 20:21:42 +08:00