25358330 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.294
Run Time 00:00.009
Inserted 2h ago
Scheduled 1h ago
Completed
Cancelled
Discarded 1h ago

Args

%{
  "account_id" => "111361",
  "data" => %{
    "account_insight_agent_id" => "1d8f2b89-74a5-4f60-bce9-6d3d95210b7b",
    "insights" => [
      %{
        "action_plan" => "Review whether these banners are still needed for active monitoring or operational notices. If they were temporary alerts or test content, unpublishing them will keep your live experience inventory cleaner without losing the draft history. If they are still meant to be used, verify that the targeted pages and audience filters are still relevant before leaving them published.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent to unpublish the published banner experience named 'Data Delay | Data Not Loaded For Previous Day' with experience ID '3d4dfd81-2bce-410c-8630-9630d36e1fb3'. This banner is currently published and has had 0 seen users in the last 30 days. Unpublish the live experience only; do not modify its draft content.",
            "title" => "Unpublish inactive data delay banner",
            "undo_prompt" => "Use the product_support agent to publish the banner experience named 'Data Delay | Data Not Loaded For Previous Day' with experience ID '3d4dfd81-2bce-410c-8630-9630d36e1fb3'. Republish the existing draft/live content without changing any content or rules."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent to unpublish the published banner experience named 'Test Banner | Data Not Loaded For Previous Day' with experience ID 'd0e879dc-ed24-47ca-a802-4f2d6d951726'. This banner is currently published and has had 0 seen users in the last 30 days. Unpublish the live experience only; do not modify its draft content.",
            "title" => "Unpublish inactive test delay banner",
            "undo_prompt" => "Use the product_support agent to publish the banner experience named 'Test Banner | Data Not Loaded For Previous Day' with experience ID 'd0e879dc-ed24-47ca-a802-4f2d6d951726'. Republish the existing draft/live content without changing any content or rules."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing unused experiences reduces clutter in your live inventory and helps your team focus on active experiences that drive engagement.",
        "finding" => "As part of routine experience hygiene, I found **2 published experiences** that were published more than 3 weeks ago and had **no activity in the last 30 days**.\n\n- [Data Delay | Data Not Loaded For Previous Day](https://studio.appcues.com/banners/3d4dfd81-2bce-410c-8630-9630d36e1fb3/settings)\n  - Type: **Banner**\n  - Published: **2024-10-21**\n  - Last 30 days: **0 seen**, **0 completed**, **0 dismissed**\n  - Designed to notify a very narrow audience about a paid search data delay on specific `pacing` and `paid-search/insights` pages for the `connex.riseinteractive.com` domain, filtered to users whose email contains `crock`\n  - Goals configured: **None**\n\n- [Test Banner | Data Not Loaded For Previous Day](https://studio.appcues.com/banners/d0e879dc-ed24-47ca-a802-4f2d6d951726/settings)\n  - Type: **Banner**\n  - Published: **2024-10-10**\n  - Last 30 days: **0 seen**, **0 completed**, **0 dismissed**\n  - Designed to show a test data-delay notice on `/admin/overview/` pages for the `connex.riseinteractive.com` domain, also filtered to users whose email contains `crock`\n  - Goals configured: **None**",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "2 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "2fb31307-deb7-44ed-b10a-cba4ab45ab33",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

Attempt 5—1h 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—2h 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—2h 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—2h 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—2h 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