#NEWLINE# def set_job( self , job_url , job_dict ) : #NEWLINE# #INDENT# job_dir_url = self . get_url ( job_url ) #NEWLINE# job_description_url = self . get_url ( ( job_url + '/job-description' ) ) #NEWLINE# logger . debug ( ( 'Job URL: %s, Job Description URL: %s' % ( job_dir_url , job_description_url ) ) ) #NEWLINE# job_desc_entry = saga . advert . entry ( saga . url ( job_dir_url ) , ( ( saga . advert . Create | saga . advert . CreateParents ) | saga . advert . ReadWrite ) ) #NEWLINE# logger . debug ( ( 'initialized advert entry for job: ' + job_dir_url ) ) #NEWLINE# job_desc_entry . store_string ( json . dumps ( job_dict ) ) #NEWLINE# self . set_job_state ( job_url , str ( saga . job . Unknown ) )