Skip to content

Commit

Permalink
Add task name field when submitting remote jobs
Browse files Browse the repository at this point in the history
Refs #7907
  • Loading branch information
rgmiller committed Sep 12, 2013
1 parent 58a3e31 commit 04ea22e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ void SubmitRemoteJob::exec()
postData["ScriptName"] = getPropertyValue( "ScriptName");
postData[getPropertyValue("ScriptName")] = getPropertyValue( "PythonScript");

// Job name is optional
std::string jobName = getPropertyValue("TaskName");
if (jobName.length() > 0)
{
postData["JobName"] = jobName;
}

std::istream &respStream = jobManager->httpPost("/submit", postData);
JSONObject resp;
initFromStream( resp, respStream);
Expand Down

0 comments on commit 04ea22e

Please sign in to comment.