public async Task Shutdown() { if (scheduler?.IsStarted ?? false) { await scheduler.Shutdown(); } }
protected override void PostStop() { if (!_externallySupplied) { _scheduler.Shutdown(); } base.PostStop(); }
public void Stop() { if (!_scheduler.IsStarted) { return; } _logger.Info("Stopping Scheduler..."); _scheduler.Shutdown(true); }
/// <summary> /// 停止 /// </summary> public async Task StopAsync() { if (_scheduler == null) { return; } if (_scheduler.IsShutdown) { return; } await _scheduler.Shutdown(true); }
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"); }
public static async Task Stop() { if (_mqtt != null) { await _mqtt.StopAsync(); } if (_quartzScheduler != null) { try { await _quartzScheduler.Shutdown(); } catch (SchedulerException) { } } _actorSystem?.Dispose(); }
public void Stop() { _scheduler.Shutdown(); _log.LogInformation <Scheduler>($"Scheduler shutdown."); }
public void Dispose() { Scheduler.PauseAll(); Scheduler.Shutdown(false); }
public void Shutdown() { scheduler.Shutdown().Wait(); }
public void TearDown() { ResultHolder.Clear(); _quartzScheduler.Shutdown(false); }
public virtual void Stop() { scheduler.Shutdown(true); logger.Info("Scheduler shutdown complete"); }
protected override void PostStop() { _scheduler.Shutdown(); base.PostStop(); }
protected override void OnStop() { scheduler.Shutdown(); }