<s> import sys <EOL> import os <EOL> import time <EOL> import logging <EOL> logging . basicConfig ( level = logging . DEBUG ) <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) <EOL> from pilot import PilotComputeService , ComputeDataService , State <EOL> COORDINATION_URL = "<STR_LIT>" <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> pilot_compute_service = PilotComputeService ( coordination_url = COORDINATION_URL ) <EOL> pilot_compute_description = { <EOL> "<STR_LIT>" : '<STR_LIT>' , <EOL> "<STR_LIT>" : <NUM_LIT:1> , <EOL> } <EOL> pilotjob = pilot_compute_service . create_pilot ( pilot_compute_description = pilot_compute_description ) <EOL> compute_unit_description = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ "<STR_LIT>" ] , <EOL> "<STR_LIT>" : <NUM_LIT:1> , <EOL> "<STR_LIT>" : [ "<STR_LIT>" ] , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT:error>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ "<STR_LIT>" + os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> + "<STR_LIT>" ] <EOL> } <EOL> compute_unit = pilotjob . submit_compute_unit ( compute_unit_description ) <EOL> logging . debug ( "<STR_LIT>" ) <EOL> compute_unit . wait ( ) <EOL> print str ( compute_unit . get_details ( ) ) <EOL> logging . debug ( "<STR_LIT>" ) <EOL> pilot_compute_service . cancel ( ) </s>
