Cool, thanks
I compared my email to the other emails that came after mine and just
wondered what the difference was. I do realize that this isn’t a very
general problem. Im sitting at GMT +2 so didn’t realise how early it
was in im guessing the east coast of the usa.
In the past, we had a after_create function in a model that submitted
a task to Bj. Bj would as expected pick this up and execute the task.
We did not have the runner configured to run in cluster mode, but let
Bj manage itself.
Recently, we saw that although the jobs were being created:
Bj.table.job.all =>
[#<Bj::Table::Job bj_job_id: 4, command: “tail -n 500
log/development.log”, state: “pending”, priority: 0, tag: “”,
is_restartable: 1, submitter: “TheLuggage”, runner: nil, pid: nil,
submitted_at: “2008-11-19 14:43:28”, started_at: nil, finished_at:
nil, env: nil, stdin: nil, stdout: nil, stderr: nil, exit_status:
nil>, #<Bj::Table::Job bj_job_id: 5, command:
"/home/someuser/someproject/script/runner “Image.f…”, state:
“pending”, priority: 0, tag: “”, is_restartable: 1, submitter:
“TheLuggage”, runner: nil, pid: nil, submitted_at: “2008-11-19
14:50:25”, started_at: nil, finished_at: nil, env: nil, stdin: nil,
stdout: nil, stderr: nil, exit_status: nil>, #<Bj::Table::Job
bj_job_id: 6, command: "/home/someuser/someproject/script/runner
“Image.f…”, state: “pending”, priority: 0, tag: “”, is_restartable:
1, submitter: “TheLuggage”, runner: nil, pid: nil, submitted_at:
“2008-11-19 14:50:49”, started_at: nil, finished_at: nil, env: nil,
stdin: nil, stdout: nil, stderr: nil, exit_status: nil>,
#<Bj::Table::Job bj_job_id: 7, command:
"/home/ivor/workspace/talkies/script/runner “Image.f…”, state:
“pending”, priority: 0, tag: “”, is_restartable: 1, submitter:
“TheLuggage”, runner: nil, pid: nil, submitted_at: “2008-11-19
14:52:55”, started_at: nil, finished_at: nil, env: nil, stdin: nil,
stdout: nil, stderr: nil, exit_status: nil>, #<Bj::Table::Job
bj_job_id: 8, command: "/home/someuser/someproject/script/runner
“Image.f…”, state: “pending”, priority: 0, tag: “”, is_restartable:
1, submitter: “TheLuggage”, runner: nil, pid: nil, submitted_at:
“2008-11-19 14:55:33”, started_at: nil, finished_at: nil, env: nil,
stdin: nil, stdout: nil, stderr: nil, exit_status: nil>,
#<Bj::Table::Job bj_job_id: 9, command:
"/home/someuser/someproject/script/runner “Image.f…”, state:
“pending”, priority: 0, tag: “”, is_restartable: 1, submitter:
“TheLuggage”, runner: nil, pid: nil, submitted_at: “2008-11-19
14:55:54”, started_at: nil, finished_at: nil, env: nil, stdin: nil,
stdout: nil, stderr: nil, exit_status: nil>]
However, the jobs are never executed. It feels like what ever couping
there was with Bj and the script/server is missing.
Bj.runner.ping
=> nil
Bj.runner.tickle
=> {“pid”=>11693, “command”=>"/usr/bin/ruby1.8
“/home/someuser/someproject/script/bj” “run” “–forever”
“–redirect=/home/someuser/someproject/log/bj.TheLuggage.development.log”
“–ppid=11445” “–rails_env=development”
“–rails_root=/home/someuser/someproject”"}
We are running Rails2.2
I will be more than willing to provide additional information - not
sure what would help.
Thanks for the feedback.
Ivor
On Wed, Nov 19, 2008 at 5:30 PM, Frederick C.