25354521 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.313
Run Time 00:00.007
Inserted 3h ago
Scheduled 3h ago
Completed
Cancelled
Discarded 3h ago

Args

%{
  "account_id" => "220262",
  "data" => %{
    "account_insight_agent_id" => "597d82ec-7eaf-4646-bc68-f844d3234400",
    "insights" => [
      %{
        "action_plan" => "Treat this as routine content hygiene: review whether this survey still serves an active use case. If not, unpublish it to keep your published inventory clean and reduce the chance of outdated or test content remaining live. If the survey is still needed, consider updating the audience or trigger so it can reach the intended users again.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID 903c9d2c-d99a-4a94-82ee-9126d4100463. This experience is named \"Test Kathryn CSAT\" and its public name is \"Feature Satisfaction Survey.\" Unpublish it as routine content hygiene because it has had no seen, completed, skipped, or error events in the last 30 days.",
            "title" => "Unpublish inactive feedback flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the flow with experience ID 903c9d2c-d99a-4a94-82ee-9126d4100463. This experience is named \"Test Kathryn CSAT\" and its public name is \"Feature Satisfaction Survey.\" Restore it to published status."
          }
        ],
        "cta_text" => "Review inactive experience",
        "entity_id" => "903c9d2c-d99a-4a94-82ee-9126d4100463",
        "entity_type" => "flow",
        "expected_impact" => "Unpublishing unused live content keeps your workspace cleaner, reduces the risk of accidental end-user exposure, and makes it easier to focus on experiences that drive activation and engagement.",
        "finding" => "You have **1 published experience** that was published more than 3 weeks ago and has had **no activity in the last 30 days**.\n\n- [Test Kathryn CSAT](https://studio.appcues.com/flows/903c9d2c-d99a-4a94-82ee-9126d4100463/settings)\n  - Type: **Flow**\n  - Last 30 days: **0 seen**, **0 completed**, **0 skipped**, **0 errors**\n  - Published on: **2026-03-02**\n  - Intended purpose: a **feature satisfaction survey** asking users to rate a feature and leave written feedback\n  - Targeting summary: triggered by the **\"Advisor Open Client Profile\"** event, allowed on **any URL**, and restricted to a **single specific user**\n  - Goals: **none assigned**\n\nThis looks like a narrow, likely test-oriented feedback flow that is still live but currently inactive.",
        "outcomes" => ["engagement", "adoption"],
        "priority" => "medium",
        "title" => "1 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "1e6ce534-2a24-4654-98ca-8523958502f7",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

Attempt 5—3h 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+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) 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—3h 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+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) 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—3h 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+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) 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—3h 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+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) 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—3h 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+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) 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