static time_t purge_timeout[EDG_WLL_NUMBER_OF_STATCODES];
static time_t notif_duration_max = 60*60*24,
notif_duration = 60*60*2;
+int proxy_purge = 0;
static edg_wll_GssCred mycred = NULL;
time_t cert_mtime = 0;
{"con-queue", 1, NULL, 'q'},
{"proxy-il-sock", 1, NULL, 'W'},
{"proxy-il-fprefix", 1, NULL, 'Z'},
+ {"proxy-purge", 0, NULL, 'G'},
{"rss-time", 1, NULL, 'I'},
{NULL,0,NULL,0}
};
-static const char *get_opt_string = "Ac:k:C:V:p:a:drm:ns:i:S:D:J:jR:F:xOL:N:X:Y:T:t:zb:gPBo:q:W:Z:I:"
+static const char *get_opt_string = "Ac:k:C:V:p:a:drm:ns:i:S:D:J:jR:F:xOL:N:X:Y:T:t:zb:gPBo:q:W:Z:GI:"
#ifdef GLITE_LB_SERVER_WITH_WS
"w:"
#endif
"\t-q,--con-queue\t size of the connection queue (accept)\n"
"\t-W,--proxy-il-sock\t socket to send events to\n"
"\t-Z,--proxy-il-fprefix\t file prefix for events\n"
+ "\t-G,--proxy-purge\t enable automatic purge on proxy service (disabled by default)\n"
"\t-I,--rss-time age\t (in seconds) of job states published via RSS\n"
,me);
break;
case 'Z': lbproxy_ilog_file_prefix = strdup(optarg);
break;
+ case 'G': proxy_purge = 1;
+ break;
case 'I': rss_time = atol(optarg);
break;
case '?': usage(name); return 1;
extern int unset_proxy_flag(edg_wll_Context, edg_wlc_JobId);
extern int enable_lcas;
+extern int proxy_purge;
static int db_store_finalize(edg_wll_Context ctx, char *event, edg_wll_Event *ev, edg_wll_JobStat *oldstat, edg_wll_JobStat *newstat, int reg_to_JP);
}
if (edg_wll_StepIntState(ctx,ev->any.jobId, ev, seq, &oldstat, &newstat)) goto rollback;
- if (newstat.remove_from_proxy)
+ if (proxy_purge && newstat.remove_from_proxy)
if (edg_wll_PurgeServerProxy(ctx, ev->any.jobId)) goto rollback;
}