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

status
GDExamples::Sleeper::ZzZzZzzz               3  6  6  2010-01-29T20:37:17  1970-01-01T00:00:00
GDExamples::Sleeper::error                  1  1  1  2010-01-29T20:37:12  2010-01-29T20:37:12   some test at /Users/plu/Development/OpenSource/Gearman-Driver/examples/lib/GDExamples/Sleeper.pm line 30.
GDExamples::Sleeper::long_running_ZzZzZzzz  1  2  1  1970-01-01T00:00:00  1970-01-01T00:00:00
GDExamples::WWW::is_online                  0  1  1  2010-01-29T20:37:12  1970-01-01T00:00:00
.

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

  • job_name

  • min_processes

  • max_processes

  • current_processes

  • last_run

  • last_error

  • last_error_message

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  1970-01-01T00:00:00  1970-01-01T00:00:00
3662
3664
3663
.
show GDExamples::Sleeper::long_running_ZzZzZzzz
GDExamples::Sleeper::long_running_ZzZzZzzz  1  2  1  1970-01-01T00:00:00  1970-01-01T00:00:00
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 [<job_name> <job_name> ...]

killall GDExamples::Sleeper::ZzZzZzzz
OK
.

It also accepts * as parameter to kill all jobs, so be careful with that!

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