saga-project / BigJob

SAGA-based Pilot-Job Implementation for Compute and Data
http://saga-project.github.com/BigJob/
Other
19 stars 8 forks source link

PilotComputeService has no list_pilot_compute #128

Closed andre-merzky closed 11 years ago

andre-merzky commented 11 years ago

Documentation at http://saga-project.github.io/BigJob/apidoc/pilot.api.compute.api.PilotComputeService-class.html says this should exist, but the code

cps     = self.adata['cps']
print "cps type: %s " % type(cps)
cpilots = cps.pilot_jobs
print "cp: %s " % cpilots

raises an exceptions.AttributeError after

cps type: <class 'pilot.impl.pilotcompute_manager.PilotComputeService'> 
andre-merzky commented 11 years ago

Note from AL (kind of): look into cu.details (?) and try to map the node location back to pilots. Or so...

drelu commented 11 years ago

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'}

andre-merzky commented 11 years ago

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...