Skip to content

Graceful shutdown and reload #325

@dima-kov

Description

@dima-kov

Hi! Thank you for to simple and easy to use tasks manager lib!

Please help me to understand, how to achieve graceful reload? Can't find any docs about this.

How it works now: when I cancel the process KeybordInterrupt is raised and tasks are cancelled (unfinished).
What I/m looking for: possibility to send HUP event, like I use for uvicorn servers manged by supervisor. How it works:

  1. stops accepting new requests;
  2. finishes all open requests;
  3. restarts the process;
  4. accepts new requests;

What is an expected way for taskiq to handle code updates (releases)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions