Skip Menu |

This queue is for tickets about the CA-AutoSys CPAN distribution.

Report information
The Basics
Id: 31727
Status: resolved
Priority: 0/
Queue: CA-AutoSys

People
Owner: sini [...] cpan.org
Requestors: dhorne [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.04
Fixed in: (no value)



Subject: Convert job status numeric values to meaningful text
Hi, the job status values are numeric, but these numbers are not particlarly meaningul. As the CA::AutoSys::Status documentation points out, these can be mapped to text fields: NONE = 0 RUNNING = 1 UNDEF_2 = 2 STARTING = 3 SUCCESS = 4 FAILURE = 5 TERMINATED = 6 ON_ICE = 7 INACTIVE = 8 ACTIVATED = 9 RESTART = 10 ON_HOLD = 11 QUEUE_WAIT = 12 UNDEF_13 = 13 REFRESH_DEP = 14 REFRESH_FW = 15
Hi, when you fetch a CA::AutoSys::Status object, e.g. via: my $status = $job->get_status(); you can retrieve the numerical value of the status via: print "status: ".$status->{status}."\n"; and the textual representation via: print "status: ".$status->{name}."\n"; or print "status: $CA::AutoSys::Status::long_status{$status->{status}}\n"; Regards, Sini