Changeset 985 for trunk/zoo-project/zoo-kernel/server_internal.c
- Timestamp:
- Mar 9, 2021, 10:00:04 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/server_internal.c
r982 r985 1143 1143 if(dirp!=NULL){ 1144 1144 while ((dp = readdir(dirp)) != NULL){ 1145 #ifdef DEBUG1146 fprintf(stderr,"File : %s searched : %s\n",dp->d_name,tmp);1147 #endif1148 1145 if(strstr(dp->d_name,pid)!=0){ 1149 1146 sprintf(fileName,"%s/%s",r_inputs->value,dp->d_name); … … 1164 1161 } 1165 1162 } 1166 map* pmStatusFile=getMapFromMaps(conf,"lenv","file.statusFile");1167 if(pmStatusFile!=NULL && zUnlink(pmStatusFile->value)!=0){1168 if(e_type==NULL || strncasecmp(e_type->value,"json",4)!=0)1169 errorException (conf,1170 _("The job cannot be removed, a file cannot be removed"),1171 "NoApplicableCode", NULL);1172 else{1173 setMapInMaps(conf,"lenv","error","true");1174 setMapInMaps(conf,"lenv","code","NoApplicableCode");1175 setMapInMaps(conf,"lenv","message",_("The job cannot be removed, a file cannot be removed"));1176 }1177 return;1178 }1179 1163 #ifdef RELY_ON_DB 1180 1164 removeService(conf,pid); 1181 1165 #endif 1182 1166 if(e_type==NULL || strncasecmp(e_type->value,"json",4)!=0){ 1183 /* No need to call 7_1 when an execution is dismissed.1184 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__);1185 invokeCallback(conf,NULL,NULL,7,1);1186 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__);1187 */1188 1167 map* statusInfo=createMap("JobID",pid); 1189 1168 addToMap(statusInfo,"Status","Dismissed");
Note: See TracChangeset
for help on using the changeset viewer.