- Timestamp:
- Aug 29, 2017, 10:52:39 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c
r846 r850 80 80 } 81 81 free(tmp[i]->name); 82 if(tmp[i]->format!=NULL) 83 free(tmp[i]->format); 82 84 tmp[i]->format=zStrdup("ComplexData"); 83 85 freeMap(&tmp[i]->content); … … 160 162 cur=cur->next; 161 163 } 164 //dumpElements((*s)->outputs); 162 165 } 163 166 … … 351 354 } 352 355 353 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__);354 fflush(stderr);355 invokeCallback(m,inputs,NULL,3,0);356 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__);357 fflush(stderr);358 359 356 // Produce the SBATCH File locally 360 357 char *scriptPath=(char*)malloc((strlen(s->name)+strlen(tmpPath->value)+strlen(uuid->value)+10)*sizeof(char)); … … 489 486 setMapInMaps(*main_conf,"lenv","message",_("Unable to fetch the remote error log file")); 490 487 tmpPath=getMapFromMaps(*main_conf,"lenv","message"); 488 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 489 fflush(stderr); 491 490 invokeCallback(m,NULL,NULL,7,1); 491 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 492 fflush(stderr); 492 493 sprintf(tmpS, "Cannot execute the HPC ZOO-Service %s: %s", s->name, tmpPath->value); 493 494 errorException(m,tmpS,"NoApplicableCode",NULL); … … 533 534 sleep(1); 534 535 setMapInMaps(*main_conf,"lenv","message",_("Read closed")); 536 invokeCallback(m,NULL,NULL,7,1); 535 537 return -1; 536 538 }else{ 537 539 if(rc<0){ 538 540 setMapInMaps(*main_conf,"lenv","message",_("Read error")); 541 invokeCallback(m,NULL,NULL,7,1); 539 542 return -1; 540 543 } … … 543 546 res=atoi(buf); 544 547 unlink(sname); 545 //free(sname); 548 //free(sname); 546 549 547 550 if(res==3){ … … 597 600 input=input->next; 598 601 } 602 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 603 fflush(stderr); 604 invokeCallback(m,NULL,outputs,5,1); 605 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 606 fflush(stderr); 599 607 } 600 608 //free(buf); … … 607 615 } 608 616 } 617 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 618 fflush(stderr); 609 619 ssh_close(*main_conf); 620 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 621 fflush(stderr); 610 622 return res; 611 623 }
Note: See TracChangeset
for help on using the changeset viewer.