NAME

Gearman::Driver::Console::Basic - Provides basic console commands

DESCRIPTION

This implements the basic management console commands like status, quit, shutdown, ...

COMMANDS

status

Parameters: none

GDExamples::Sleeper::ZzZzZzzz               3  6  3
GDExamples::Sleeper::long_running_ZzZzZzzz  1  2  1
GDExamples::WWW::is_online                  0  1  0
.

Columns are separated by at least two spaces in this order:

  • job_name

  • min_processes

  • max_processes

  • current_processes

set_min_processes

Parameters: job_name min_processes

set_min_processes asdf 5
ERR invalid_job_name: asdf
set_min_processes GDExamples::Sleeper::ZzZzZzzz ten
ERR invalid_value: min_processes must be >= 0
set_min_processes GDExamples::Sleeper::ZzZzZzzz 10
ERR invalid_value: min_processes must be smaller than max_processes
set_min_processes GDExamples::Sleeper::ZzZzZzzz 5
OK
.

set_max_processes

Parameters: job_name max_processes

set_max_processes asdf 5
ERR invalid_job_name: asdf
set_max_processes GDExamples::Sleeper::ZzZzZzzz ten
ERR invalid_value: max_processes must be >= 0
set_max_processes GDExamples::Sleeper::ZzZzZzzz 0
ERR invalid_value: max_processes must be greater than min_processes
set_max_processes GDExamples::Sleeper::ZzZzZzzz 6
OK
.

set_processes

Parameters: job_name min_processes max_processes

set_processes asdf 1 1
ERR invalid_job_name: asdf
set_processes GDExamples::Sleeper::ZzZzZzzz ten ten
ERR invalid_value: min_processes must be >= 0
set_processes GDExamples::Sleeper::ZzZzZzzz 1 ten
ERR invalid_value: max_processes must be >= 0
set_processes GDExamples::Sleeper::ZzZzZzzz 5 1
ERR invalid_value: max_processes must be greater than min_processes
set_processes GDExamples::Sleeper::ZzZzZzzz 1 5
OK
.

show

Parameters: job_name

show GDExamples::Sleeper::ZzZzZzzz
GDExamples::Sleeper::ZzZzZzzz   3       6       3
3662
3664
3663
.
show GDExamples::Sleeper::long_running_ZzZzZzzz
GDExamples::Sleeper::long_running_ZzZzZzzz      1       2       1
3665
.

kill

Parameters: pid [<pid> <pid> ...]

kill 1
ERR invalid_value: the given PID(s) do not belong to us
kill 3662
OK
.

killall

Kills all childs/pids of given job.

Parameters: job_name

killall GDExamples::Sleeper::ZzZzZzzz
OK
.

quit

Parameters: none

Closes your connection gracefully.

shutdown

Parameters: none

Shuts Gearman::Driver down.

AUTHOR

See Gearman::Driver.

COPYRIGHT AND LICENSE

See Gearman::Driver.

SEE ALSO