<s> import genie2 . client . wrapper <EOL> import genie2 . model . ClusterCriteria <EOL> import genie2 . model . Job <EOL> import genie2 . model . FileAttachment <EOL> import time <EOL> genie = genie2 . client . wrapper . Genie2 ( "<STR_LIT>" , <EOL> genie2 . client . wrapper . RetryPolicy ( <EOL> tries = <NUM_LIT:8> , none_on_404 = True , no_retry_http_codes = range ( <NUM_LIT> , <NUM_LIT> ) <EOL> ) ) <EOL> job = genie2 . model . Job . Job ( ) <EOL> job . name = "<STR_LIT>" <EOL> job . user = "<STR_LIT:root>" <EOL> job . version = "<STR_LIT>" <EOL> job . clusterCriterias = list ( ) <EOL> cluster_criteria = genie2 . model . ClusterCriteria . ClusterCriteria ( ) <EOL> criteria = set ( ) <EOL> criteria . add ( "<STR_LIT>" ) <EOL> criteria . add ( "<STR_LIT>" ) <EOL> cluster_criteria . tags = criteria <EOL> job . clusterCriterias . append ( cluster_criteria ) <EOL> command_criteria = set ( ) <EOL> command_criteria . add ( "<STR_LIT>" ) <EOL> job . commandCriteria = command_criteria <EOL> job . fileDependencies = "<STR_LIT>" <EOL> job . commandArgs = "<STR_LIT>" <EOL> job = genie . submitJob ( job ) <EOL> while job . status != "<STR_LIT>" and job . status != "<STR_LIT>" and job . status != "<STR_LIT>" : <EOL> print "<STR_LIT>" + job . id + "<STR_LIT>" + job . status <EOL> time . sleep ( <NUM_LIT:10> ) <EOL> job = genie . getJob ( job . id ) <EOL> print "<STR_LIT>" + job . id + "<STR_LIT>" + job . status </s>
