Skip to content

Improve channel broker GC #2357

@anaPerezGhiglia

Description

@anaPerezGhiglia

Clear the channel broker queue entry if active_contact.channel_state is nil to prevent the following error

** (FunctionClauseError) no function clause matching in Ask.Runtime.Channel.Ask.Runtime.NuntiumChannel.message_inactive?/2
    (ask 0.31.0) lib/ask/runtime/nuntium_channel.ex:455: Ask.Runtime.Channel.Ask.Runtime.NuntiumChannel.message_inactive?(%Ask.Runtime.NuntiumChannel{base_url: "https://nuntium-stg.instedd.org", name: "lgwsim - qa@manas.com.ar", oauth_token: %OAuth2.AccessToken{access_token: "TRzf9Cu1v_WlwLkpiIKShi-nA_GZh1F_S2NLMEcXE_4", expires_at: 1720472770, other_params: %{}, refresh_token: "dH0-HfJfWAIVdDsyCnC3_HhyKkXU_l58i3Hl07KMRsQ", token_type: "Bearer"}, settings: %{"capacity" => 1000, "nuntium_account" => "qa@manas.com.ar", "nuntium_channel" => "lgwsim"}}, nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    On hold

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions