public override void SubmitJob() { if (Context.PeloponneseHomeDirectory == null) { Context.PeloponneseHomeDirectory = Context.DryadHomeDirectory; } if (Context.DryadHomeDirectory == null) { throw new ApplicationException("No Dryad home directory is set"); } if (!IsValidDryadDirectory(Context.DryadHomeDirectory)) { throw new ApplicationException("Dryad home directory " + Context.DryadHomeDirectory + " is missing some required files"); } XDocument config = GenerateConfig(); try { this.m_job = Context.Cluster.Client(Context).Submit(config, new Uri(JobDirectory)); } catch (Exception e) { throw new DryadLinqException("Failed to launch", e); } }
public void Submit() { this.clusterJob = this.clusterClient.Submit( this.launcherConfig, new Uri(this.clusterClient.JobDirectoryTemplate.AbsoluteUri.Replace("_BASELOCATION_", "naiad-jobs"))); }