Skip to content

Commit

Permalink
bug--
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Aug 11, 2018
1 parent 3a07d36 commit 949093d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/wrench/managers/JobManager.cpp
Expand Up @@ -492,7 +492,7 @@ namespace wrench {
task->getID() + " does not have a TASK_COMPLETED internal state (" +
WorkflowTask::stateToString(task->getInternalState()) + ")");
}
auto children = this->wms->getWorkflow()->getTaskChildren(task);
auto children = task->getWorkflow()->getTaskChildren(task);
for (auto child : children) {
switch (child->getInternalState()) {
case WorkflowTask::InternalState::TASK_NOT_READY:
Expand Down
Expand Up @@ -91,7 +91,6 @@ namespace wrench {
num_cores_per_node, num_cores_per_node, parallel_efficiency,
requested_ram);
to_submit.push_back(task);
std::cerr << "ADDED TASK " << task->getID() << "\n";
}

// Create a Standard Job with only the tasks
Expand All @@ -105,12 +104,10 @@ namespace wrench {
batch_job_args["-c"] = std::to_string(num_cores_per_node); //number of cores per task
batch_job_args["-color"] = "green";

std::cerr << "SUBMITTING!!!\n";
// Submit this job to the batch service
WRENCH_INFO("Submitting a [-N:%s, -t:%s, -c:%s] job",
batch_job_args["-N"].c_str(), batch_job_args["-t"].c_str(), batch_job_args["-c"].c_str());
job_manager->submitJob(standard_job, this->batch_service, batch_job_args);
WRENCH_INFO("SUBMITTED");

}

Expand Down

0 comments on commit 949093d

Please sign in to comment.