* @param flowStep the step in the flow that represents the MapReduce job
*/
@Override
public void onStepRunning(FlowStep flowStep) {
//getting Hadoop running job and job client
HadoopStepStats stats = (HadoopStepStats)flowStep.getFlowStepStats();
JobClient jc = stats.getJobClient();
// first we report the scripts progress
int progress = (int) (((runningJobs * 1.0) / totalNumberOfJobs) * 100);
AmbroseUtils.pushWorkflowProgressEvent(statsWriteService, currentFlowId, progress);
//get job node
String jobId = stats.getJobID();
DAGNode<CascadingJob> node = dagNodeJobIdMap.get(jobId);
if (node == null) {
log.warn("Unrecognized jobId reported for succeeded job: " + stats.getJobID());
return;
}
//only push job progress events for a completed job once
if(completedJobIds.contains(node.getJob().getId())) {