Skip to content

Clarify semantics of shutdown #131

Open
@t089

Description

@t089

We should clarify what the semantics of shutdown are.

I think the following definition could make sense:

When a shutdown signal is received by the client

  • It keeps processing already inflight tasks (following redirect, downloading / uploading, etc ...)
  • It cancels tasks that are waiting to be processed
  • It errors new tasks that are being scheduled after the signal was received
  • Once all tasks have either failed or finished, if it owns the event loop it stops the event loop.

I think at the moment there is no queue of pending tasks, so point two is maybe not relevant yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementImprovements to existing feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions