Skip to content

App can't be be normaly sopped if source wait to reload #22

@yellow-sky

Description

@yellow-sky
  1. Source can't connect to kafka\other resource - executor wait 10 sedonds (
    time.Sleep(10 * time.Second)
    )
  2. During this period of time, a shutdown message is received by app (
    func (e *Executor) Shutdown() (done chan struct{}) {
    )
  3. Executor try to shutdown source, but old instance (
    err := e.source.Shutdown()
    )
  4. Executor continues to execute an infinite loop ( )
  5. New source instance doesn't know anything about studown signal
  6. Go to step 4
    =>
    App does not respond to system shutdown signals

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