24234943 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.161
Run Time 00:00.006
Inserted 8d ago
Scheduled 8d ago
Completed
Cancelled
Discarded 8d ago

Args

%{
  "account_id" => "22",
  "data" => %{
    "account_insight_agent_id" => "58a7c029-6ab0-4690-bb22-a24a64a64ff0",
    "insights" => [
      %{
        "action_plan" => "Review this pin for missing target elements, front-end rendering issues, or SDK-related errors. Since it is still getting substantial traffic, fixing delivery problems here should take priority over lower-volume content.",
        "actions" => [],
        "cta_text" => nil,
        "entity_id" => "e6eb9b69-6529-407f-a90b-cf670a96a5da",
        "entity_type" => "pin",
        "expected_impact" => "Reducing errors on this high-traffic pin should improve message delivery and recover engagement with the upsell experience.",
        "finding" => "The published **[Upsell] Try Mobile** pin recorded **327 errors** across **1,304 views** in the last 7 days — a **25.1% error rate**.",
        "outcomes" => ["engagement", "activation"],
        "priority" => "high",
        "title" => "Try Mobile pin is failing on 1 in 4 views",
        "type" => "issue"
      },
      %{
        "action_plan" => "Either unpublish the flow if it is no longer needed, or review its targeting and trigger rules to confirm it can still qualify for traffic.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent to unpublish the published flow with ID 16eebe28-ba50-452b-a6e4-076a222f8c93 named \"[Feature release] Insights Feedback\". This flow had zero views in the last 7 days and should be taken live immediately.",
            "title" => "Unpublish zero-view Insights Feedback flow",
            "undo_prompt" => "Use the product_support agent to publish the flow with ID 16eebe28-ba50-452b-a6e4-076a222f8c93 named \"[Feature release] Insights Feedback\" to restore it live."
          }
        ],
        "cta_text" => "Unpublish",
        "entity_id" => "16eebe28-ba50-452b-a6e4-076a222f8c93",
        "entity_type" => "flow",
        "expected_impact" => "Cleaning up or fixing inactive live content helps keep your experience inventory focused on messages that can actually drive engagement.",
        "finding" => "This published flow had **0 views** in the last 7 days while remaining live.",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "Insights Feedback flow has had no views in 7 days",
        "type" => "issue"
      },
      %{
        "action_plan" => "If this checklist-step flow is no longer part of the active trial journey, unpublish it. If it should still be running, inspect its audience and trigger conditions to find why it is not being seen.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent to unpublish the published flow with ID 81bff880-d499-4902-bf32-fcb6cdf66727 named \"[Trial] Build your first flow - Checklist step (April 2025)\". This flow had zero views in the last 7 days and should be taken live immediately.",
            "title" => "Unpublish zero-view checklist step flow",
            "undo_prompt" => "Use the product_support agent to publish the flow with ID 81bff880-d499-4902-bf32-fcb6cdf66727 named \"[Trial] Build your first flow - Checklist step (April 2025)\" to restore it live."
          }
        ],
        "cta_text" => "Unpublish",
        "entity_id" => "81bff880-d499-4902-bf32-fcb6cdf66727",
        "entity_type" => "flow",
        "expected_impact" => "Removing or repairing inactive onboarding content will reduce clutter and make it easier to maintain the trial journey.",
        "finding" => "This published flow had **0 views** in the last 7 days while remaining live.",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "Build your first flow checklist step has had no views in 7 days",
        "type" => "issue"
      },
      %{
        "action_plan" => "Unpublish this flow if the sandbox path is retired, or review whether its targeting still matches active users entering the sandbox experience.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent to unpublish the published flow with ID 06072271-a975-4899-86f3-a4b3ef2792b1 named \"[Trial] Sandbox - Add a step (June 2025)\". This flow had zero views in the last 7 days and should be taken live immediately.",
            "title" => "Unpublish zero-view sandbox flow",
            "undo_prompt" => "Use the product_support agent to publish the flow with ID 06072271-a975-4899-86f3-a4b3ef2792b1 named \"[Trial] Sandbox - Add a step (June 2025)\" to restore it live."
          }
        ],
        "cta_text" => "Unpublish",
        "entity_id" => "06072271-a975-4899-86f3-a4b3ef2792b1",
        "entity_type" => "flow",
        "expected_impact" => "Fixing or removing zero-traffic sandbox content should improve operational hygiene and reduce time spent maintaining unused experiences.",
        "finding" => "This published flow had **0 views** in the last 7 days while remaining live.",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "Sandbox Add a step flow has had no views in 7 days",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "beb51e96-3415-4192-b890-6647b525fe60",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1776716190187784, "structured" => true}

Errors

Attempt 5—8d ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+3761840e) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+3761840e) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 4—8d ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+3761840e) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+3761840e) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 3—8d ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+3761840e) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+3761840e) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 2—8d ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+3761840e) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+3761840e) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 1—8d ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+3761840e) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+3761840e) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4