Hi!
When running some of the scripts from the command line, I encountered a few
problems.
First, when trying to release a job, I have this message:
/usr/local/bin/release --log_dir=/var/log/ema/scheduler/logs
--family_dir=/usr/local/taskforest/families --job=ema_cds::cds_loader
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/TaskForest/Family.pm line 1003, <GEN0> line 1.
Calendar /tue_fri does not exist
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/TaskForest/Release.pm line 91, <GEN0> line 1.
Cannot release job ema_cds::cds_loader since it is not in the 'Waiting' or
'Hold' state - it's in the state
I found that from the command line, the calendar directory is not set. I
propose a patch where the command line simply use the same
&TaskForest::Options::getOptions(...) call to parse its argument, I modified
Options.pm to accept a new argument for the job name.
Hold has the same problem:
/usr/local/bin/hold --log_dir=/var/log/ema/scheduler/logs
--family_dir=/usr/local/taskforest/families
--job=ema_address::address_loader
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/TaskForest/Family.pm line 1003, <GEN0> line 1.
Calendar /tue_fri does not exist
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/TaskForest/Hold.pm line 91, <GEN0> line 1.
Cannot hold job ema_address::address_loader since it is not in the 'Waiting'
state - it's in the state.
at /usr/local/bin/hold line 61
I used the same solution as release.
Status also has this problem, I again used the same solution.
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/TaskForest/Family.pm line 1003, <GEN0> line 1.
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/TaskForest/Family.pm line 1003, <GEN1> line 1.
...
Calendar /tue_fri does not exist
Calendar /tue_fri does not exist
...
Job
Status Code Zone Start Start Time
ema_address::wait_address
Failure 256 America/Chicago --:-- 20:01 04:01
ema_alt_security::wait_alt_security
Failure 256 America/Chicago --:-- 20:01 04:01
...
The modification and use of Options.pm may not be the best solution to the
problem, but it works.
The releaseHold is not in the release, altough documented. I created it, it
is similar to release.
The last two patches are nice to have only. I modified to *status* web
service so it auto-refresh, I use it as a monitoring tool, leaving it always
open in a web browser tab. The only modification is that status2.html uses
the head_status.hml instead of the regular status.html, and the only
difference between head_status.hml and status.html is that head_status.html
adds this statement:
<meta http-equiv="refresh" content="30" >
Thanks for the nice work on Taskforest, it's a great scheduler!
Denis Benoit
|