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

Define web.Application.on_startup() handler #1

Closed
wants to merge 1 commit into from

Commits on Aug 22, 2016

  1. Define web.Application.on_startup() handler

    Changes:
    
    - Define `web.Application.on_startup()` signal handler.
    - Run `app.on_startup()` along with the request handler within an event
    loop in `web.run_app()`.
    - Tests for `Application.on_startup` signal
    - Tests for multiple tasks to run on startup, including two long running
    - Extend tests on `web.run_app()`: ensure that `Application.startup()`
    is called within `web.run_app()`.
    - Add documentation for `Application.on_startup` signal handler:
        - Describe possible use cases
        - Minor: fix typo
    
    Notes:
    
    In the `tests/test_run_app.py` increased delay for `loop.call_later` from
    `0.01s` to `0.02s` since with the old value loop used to stop
    before coroutines gathered for `on_startup` finished, that caused
    an exception.
    f0t0n committed Aug 22, 2016
    Configuration menu
    Copy the full SHA
    c279825 View commit details
    Browse the repository at this point in the history