Closed andre-merzky closed 11 years ago
Note from AL (kind of): look into cu.details (?) and try to map the node location back to pilots. Or so...
You can currently introspect PilotCompute's and ComputeUnits
print "CU Details:" print str(compute_unit.get_details())
print "PJ 1 Details:" print str(pilotjob.get_details()) print "PJ 2 Details:" print str(pilotjob2.get_details())
CU Details: {'run_host': 'me.local', 'Executable': '/bin/date', 'NumberOfProcesses': '1', 'start_time': '1373146044.84', 'agent_start_time': '1373160450', 'state': 'Done', 'end_time': '1373146060.49', 'Arguments': "['']", 'Error': 'stderr.txt', 'Output': 'stdout.txt', 'job-id': 'sj-d9c7aba6-e682-11e2-9daa-28cfe9181339', 'SPMDVariation': 'single', 'end_queue_time': '1373146056.07'} PJ 1 Details: {'bigjob_id': 'bigjob:bj-d947e966-e682-11e2-9ddd-28cfe9181339:localhost', 'description': "{'number_of_processes': 1, 'working_directory': '/Users/luckow/workspace-saga/bigjob/BigJob/work', 'affinity_machine_label': 'mymachine', 'service_url': 'fork://localhost', 'affinity_datacenter_label': 'eu-de-south'}", 'start_time': '1373146044.0', 'state': 'Running', 'stopped': 'False', 'end_queue_time': '1373146051.03'} PJ 2 Details: {'bigjob_id': 'bigjob:bj-d987aeca-e682-11e2-81cd-28cfe9181339:localhost', 'description': "{'number_of_processes': 1, 'working_directory': '/Users/luckow/workspace-saga/bigjob/BigJob/work', 'affinity_machine_label': 'mymachine', 'service_url': 'fork://localhost', 'affinity_datacenter_label': 'eu-de-south'}", 'start_time': '1373146044.42', 'state': 'Running', 'stopped': 'False', 'end_queue_time': '1373146050.49'}
Well, but when I try to inspect a ComputePilotService, I don't really have any Pilots or ComputeUnits I could inspect?
I think you can close the ticket though, I don't think this is relevant for the scope of Troy anymore...
Documentation at http://saga-project.github.io/BigJob/apidoc/pilot.api.compute.api.PilotComputeService-class.html says this should exist, but the code
raises an
exceptions.AttributeError
after