Beispiel #1
0
        public static List <string> GetReport(IHttpContextAccessor accessor, IMemoryCache cache, IServiceProvider serviceProvider, string uid)
        {
            var job = WpsJob.Load(accessor, cache, serviceProvider, uid);

            if (job == null)
            {
                throw new EntryPointNotFoundException();
            }
            return(job.GetReport());
        }
Beispiel #2
0
        public static Execute GetExecuteRequest(IHttpContextAccessor accessor, IMemoryCache cache, IServiceProvider serviceProvider, string uid)
        {
            var job = WpsJob.Load(accessor, cache, serviceProvider, uid, false);

            if (job == null)
            {
                throw new EntryPointNotFoundException();
            }
            return(job.jobOrder.ExecuteRequest);
        }
Beispiel #3
0
        public static ExecuteResponse GetCachedExecuteResponse(IHttpContextAccessor accessor, IMemoryCache cache, IServiceProvider serviceProvider, string uid)
        {
            var job = WpsJob.Load(accessor, cache, serviceProvider, uid);

            if (job == null)
            {
                throw new EntryPointNotFoundException();
            }
            return(job.GetExecuteResponse());
        }
Beispiel #4
0
        public static void ForceRetry(IHttpContextAccessor accessor, IMemoryCache cache, IServiceProvider serviceProvider, string uid, int retry)
        {
            var job = WpsJob.Load(accessor, cache, serviceProvider, uid);

            if (job == null)
            {
                throw new EntryPointNotFoundException();
            }
            if (job.jobOrder.RecoveryInfo != null)
            {
                job.jobOrder.RecoveryInfo.retry = retry;
                job.jobOrder.SetRecoveryInfo(job.jobOrder.RecoveryInfo);
            }
            job.Run();
        }