Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graceful shutdown (#48) #89

Closed
wants to merge 3 commits into from
Closed

Add graceful shutdown (#48) #89

wants to merge 3 commits into from

Conversation

WoolenSweater
Copy link

Что нового?

Добавлен функционал, о котором писали в проблеме #48.
Scheduler ожидает выполнения всех задач (active & pending) при завершении работы .

Реализация.

coroutine Scheduler.join(timeout=1, graceful_timeout=1)

  • timeout (int) - определяет задержку, перед тем как в задаче будет возбуждено исключение asyncio.CancelledError.
  • graceful_timeout (int) - время, которое отведено задаче на завершение работы после возбуждения исключения.

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #89 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #89   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines         231    259   +28     
=====================================
+ Hits          231    259   +28
Impacted Files Coverage Δ
aiojobs/_job.py 100% <100%> (ø) ⬆️
aiojobs/_scheduler.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ffd708...1a1db1c. Read the comment docs.

@madkote
Copy link

madkote commented Apr 6, 2020

is it merged?

@CLAassistant
Copy link

CLAassistant commented Nov 16, 2020

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants