Skip to content

Commit

Permalink
Changed default method value to doNormal
Browse files Browse the repository at this point in the history
* Also updated documentation
* Suggested by Ben Meynell
  • Loading branch information
mmoreram committed Sep 4, 2013
1 parent fcd49ef commit 7e4ccef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getConfigTreeBuilder()
->defaultValue(150)
->end()
->scalarNode('method')
->defaultValue('do')
->defaultValue('doNormal')
->end()
->end()
->end()
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ Also we must config gearman cache, using doctrine cache.
defaults:

# default method related with all jobs
# do
# do // deprecated as of pecl/gearman 1.0.0. Use doNormal
# doNormal
# doBackground
# doHigh
# doHighBackground
# doLow
# doLowBackground
method: do
method: doNormal

# Default number of executions before job dies.
# If annotations defined, will be overwritten
Expand Down Expand Up @@ -189,7 +190,7 @@ Job annotations always overwrite work annotations, and work annotations always o
* @Gearman\Work(
* iterations = 3,
* description = "Worker test description",
* defaultMethod = "do",
* defaultMethod = "doBackground",
* servers = {
* { "host": "192.168.1.1", "port": 4560 },
* { "host": "192.168.1.2", "port": 4560 },
Expand Down Expand Up @@ -244,7 +245,7 @@ Job annotations always overwrite work annotations, and work annotations always o
* name = "MyAcmeWorker",
* iterations = 3,
* description = "Acme Worker. Containing multiple available jobs",
* defaultMethod = "do",
* defaultMethod = "doHigh",
* servers = {
* { "host": "192.168.1.1", "port": 4560 },
* { "host": "192.168.1.2", "port": 4560 },
Expand Down

0 comments on commit 7e4ccef

Please sign in to comment.