Esempio n. 1
0
 public async Task Shutdown()
 {
     if (scheduler?.IsStarted ?? false)
     {
         await scheduler.Shutdown();
     }
 }
Esempio n. 2
0
 protected override void PostStop()
 {
     if (!_externallySupplied)
     {
         _scheduler.Shutdown();
     }
     base.PostStop();
 }
Esempio n. 3
0
        public void Stop()
        {
            if (!_scheduler.IsStarted)
            {
                return;
            }

            _logger.Info("Stopping Scheduler...");
            _scheduler.Shutdown(true);
        }
Esempio n. 4
0
 /// <summary>
 /// 停止
 /// </summary>
 public async Task StopAsync()
 {
     if (_scheduler == null)
     {
         return;
     }
     if (_scheduler.IsShutdown)
     {
         return;
     }
     await _scheduler.Shutdown(true);
 }
Esempio n. 5
0
        public void Stop()
        {
            if (_scheduler == null)
            {
                return;
            }

            if (_scheduler.Shutdown(waitForJobsToComplete: true).Wait(30000))
            {
                _scheduler = null;
            }
            else
            {
            }
            _logger.LogCritical("Schedule job upload as application stopped");
        }
Esempio n. 6
0
        public static async Task Stop()
        {
            if (_mqtt != null)
            {
                await _mqtt.StopAsync();
            }

            if (_quartzScheduler != null)
            {
                try
                {
                    await _quartzScheduler.Shutdown();
                }
                catch (SchedulerException)
                {
                }
            }

            _actorSystem?.Dispose();
        }
Esempio n. 7
0
        public void Stop()
        {
            _scheduler.Shutdown();

            _log.LogInformation <Scheduler>($"Scheduler shutdown.");
        }
Esempio n. 8
0
 public void Dispose()
 {
     Scheduler.PauseAll();
     Scheduler.Shutdown(false);
 }
Esempio n. 9
0
 public void Shutdown()
 {
     scheduler.Shutdown().Wait();
 }
Esempio n. 10
0
 public void TearDown()
 {
     ResultHolder.Clear();
     _quartzScheduler.Shutdown(false);
 }
Esempio n. 11
0
 public virtual void Stop()
 {
     scheduler.Shutdown(true);
     logger.Info("Scheduler shutdown complete");
 }
Esempio n. 12
0
 protected override void PostStop()
 {
     _scheduler.Shutdown();
     base.PostStop();
 }
 protected override void OnStop()
 {
     scheduler.Shutdown();
 }