IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29174


Ignore:
Timestamp:
Sep 17, 2010, 2:53:01 PM (16 years ago)
Author:
bills
Message:

check in the current script run by the postage stamp server
status page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_server_status

    r27211 r29174  
    1616
    1717my ($rundir, $verbose, $save_temps);
     18my $br = '<br />';
    1819
    1920GetOptions(
     
    99100    print "Pantasks Scheduler $scheduler_state.\n";
    100101    if ($controller_state) {
    101         print "Pantasks Controller $controller_state.\n";
     102        print $br . "Pantasks Controller $controller_state.\n";
    102103    } else {
    103104        print STDERR "Controller state not found";
    104105        exit 1;
    105106    }
    106     print "\n";
     107    print "$br$br\n";
    107108} else {
    108109    print STDERR "Scheduler state not found";
     
    116117
    117118if ($request_run) {
    118     print "<b>Parser Status:</b> $request_run->{nrun} running. $request_run->{ngood} parsed successfully.&nbsp; $request_run->{nfail} failed to parse.";
     119    print "<br /><b>Parser Status:</b> $request_run->{nrun} running. $request_run->{ngood} parsed successfully.&nbsp; $request_run->{nfail} failed to parse.";
    119120    if ($request_fin) {
    120121        print "  $request_fin->{ngood} Requests finished.";
     
    125126    print "\n";
    126127    if ($job_run) {
    127         print "<b>Job Status:</b> &nbsp;&nbsp; $job_run->{nrun} running. &nbsp; $job_run->{ngood} completed successfully. &nbsp; $job_run->{nfail} failed";
    128         print "\n";
     128        print "<br /><b>Job Status:</b> &nbsp;&nbsp; $job_run->{nrun} running. &nbsp; $job_run->{ngood} completed successfully. &nbsp; $job_run->{nfail} failed";
     129        print "<br />\n";
    129130    } else {
    130         print "Task pstamp.job.run not found.\n";
     131        print "Task pstamp.job.run not found.<br />\n";
    131132    }
     133    print "<br /><b>Unfinished Requests</b><br />\n";
     134    print "<pre>\n";
     135    system "/home/panstarrs/bills/ipp/tools/psstatus -r ";
     136    print "</pre>\n";
     137    print "<br /><b>Requests completed in last 24 hours (most recently completed first)</b><br />\n";
     138    print "<pre>\n";
     139    # finished requests
     140    system "/home/panstarrs/bills/ipp/tools/psstatus -f";
     141    print "</pre>\n";
    132142} else {
    133143    print "Task pstamp.request.run not found.\n";
     
    135145
    136146
     147
     148
    137149exit 0;
Note: See TracChangeset for help on using the changeset viewer.