24954162 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 00:00.253
Run Time 00:00.006
Inserted 3d ago
Scheduled 3d ago
Completed
Cancelled
Discarded 3d ago

Args

%{
  "account_id" => "103773",
  "data" => %{
    "account_insight_agent_id" => "8e43d764-56de-42d5-9a70-75a5a120404a",
    "insights" => [
      %{
        "action_plan" => "Review this as a live-content hygiene pass:\n1. Open the linked experience settings pages and confirm whether each experience still supports an active teacher lifecycle, storage-limit campaign, or renewal motion.\n2. Unpublish experiences tied to expired campaigns, old semester timing, or segments/events that are no longer in use.\n3. Keep published only the experiences you expect to reactivate soon; otherwise archive your intent in naming or folders so future hygiene reviews are faster.\n\nIf you want direct cleanup, the safest next step is to bulk-unpublish the confirmed inactive set after a final review of the linked settings pages.",
        "actions" => [],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Reducing stale live content should lower the risk of outdated teacher messaging, simplify ongoing maintenance, and make it easier to spot which Appcues experiences are still contributing to activation, engagement, and retention.",
        "finding" => "The latest 30-day hygiene review flagged **29 published experiences** that were **published more than 3 weeks ago** and had **no events or enrollments in the last 30 days**.\n\nThis looks like routine content cleanup rather than a build mistake — Appcues explicitly treats this as **Experience Hygiene**, meant to catch live experiences that may no longer be relevant or are no longer being reached .\n\nThe inactive set is concentrated in a few live clusters that are still published today:\n- **Flows**\n  - 2026 engagement / welcome-series variants, including [2026 Engagement - Quizzes and Slides](https://studio.appcues.com/flows/489dba7e-3aab-4a0f-ad13-b94282008790/settings)\n  - Welcome-series \"No Content\" and \"No Assignment\" subject variants, including [No Content - ELA](https://studio.appcues.com/flows/2106d475-f250-4d59-814e-cd28fac2af9b/settings), [No Content - Math](https://studio.appcues.com/flows/ede73279-708e-42b9-b2e1-88aaea6c0788/settings), [No Assignment - ELA](https://studio.appcues.com/flows/08eb3357-36a2-4938-b1ad-45443c1e1bac/settings), and [No Assignment - Math](https://studio.appcues.com/flows/02447092-bb2d-41a3-a567-00936901c4a9/settings)\n  - Older active-teacher resource / limit prompts, including [1 Active Teacher - 10 Learning Resources](https://studio.appcues.com/flows/6bd3b0f1-74df-45d9-97fd-a91664ac04c9/settings), [1 Active Teacher - Limit Reached](https://studio.appcues.com/flows/efd3dbdc-4f3c-48aa-8d10-249491ad9eb8/settings), [2-3 Active Teacher - 10 Learning Resources](https://studio.appcues.com/flows/29a8f2f1-3b45-4f71-abb3-3fc06427ed32/settings), and [6+ Active Teacher - Limit Reached](https://studio.appcues.com/flows/613b124c-2a2f-464e-bebf-65a7deeb6031/settings)\n  - Renewal / de-escalation flow [2025 - US - De-escalation - Day 14 until 1 day (Clock)](https://studio.appcues.com/flows/d5a6a7f6-6800-4550-b82d-c8a9f515264a/settings)\n- **Banners**\n  - Active-teacher resource banners, including [1 Active Teacher - 5 Learning Resources](https://studio.appcues.com/banners/e748104e-ff91-4410-b22a-cabc5200616c/settings), [2-3 Active Teacher - 5 Learning Resources](https://studio.appcues.com/banners/b5575313-0751-4ccb-9c9b-6404912a2f68/settings), [4-5 Active Teacher - 5 Learning Resources](https://studio.appcues.com/banners/ed30dc5e-3af9-485d-b012-f7cd283dc873/settings), and [6+ Active Teacher - 5 Learning Resources](https://studio.appcues.com/banners/7053a277-5b6d-4c38-b893-e3e9c8ff0f68/settings)\n  - Localized / renewal banners, including [2025 - ROW - Renewals - Day 30 (Italian)](https://studio.appcues.com/banners/afa6322d-f31d-4b62-a94e-91cf073665e1/settings), [2025 - ROW - Renewals - Day 30 (French)](https://studio.appcues.com/banners/28879a19-0292-43d4-b4b4-059c94583cb6/settings), and [2025 - US - De-escalation - Day 60 to 15](https://studio.appcues.com/banners/c2c4aa92-a1b1-4e82-97f1-87ec32ae77dc/settings)\n\nBased on their names, targeting patterns, and lifecycle timing, these experiences appear designed for seasonal welcomes, storage-limit nudges, renewal/de-escalation messaging, and active-teacher re-engagement. The absence of recent activity suggests they may be tied to expired campaigns, outdated targeting, or segments/events that are no longer qualifying users.",
        "outcomes" => ["engagement", "retention"],
        "priority" => "high",
        "title" => "29 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "55bb28ef-05c0-401a-85b3-79d9161cf65e",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

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