Ignore:
Timestamp:
Mar 9, 2021, 10:00:04 AM (9 months ago)
Author:
djay
Message:

Move jobs management and execution endpoint from /processes/{procssId}/jobs to /jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/server_internal.c

    r982 r985  
    11431143    if(dirp!=NULL){
    11441144      while ((dp = readdir(dirp)) != NULL){
    1145 #ifdef DEBUG
    1146         fprintf(stderr,"File : %s searched : %s\n",dp->d_name,tmp);
    1147 #endif
    11481145        if(strstr(dp->d_name,pid)!=0){
    11491146          sprintf(fileName,"%s/%s",r_inputs->value,dp->d_name);
     
    11641161      }
    11651162    }
    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       }
    11791163#ifdef RELY_ON_DB
    11801164    removeService(conf,pid);
    11811165#endif
    11821166    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       */
    11881167      map* statusInfo=createMap("JobID",pid);
    11891168      addToMap(statusInfo,"Status","Dismissed");
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png