25358328 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.292
Run Time 00:00.011
Inserted 3h ago
Scheduled 3h ago
Completed
Cancelled
Discarded 3h ago

Args

%{
  "account_id" => "206434",
  "data" => %{
    "account_insight_agent_id" => "75cac93d-710b-4552-b07d-9a5246df4f70",
    "insights" => [
      %{
        "action_plan" => "Treat this as routine experience cleanup. Review whether the expired-trial audience still exists and whether this banner still supports a live lifecycle message. If it is no longer part of your current journey, unpublish it to keep your published inventory focused. If the use case is still valid, keep it live but verify the targeting rules and underlying user properties are still being populated as expected.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published banner with experience ID 640cee1c-858b-4ecc-9513-2f6eacb47b83 named 'Free Trial Expired'. This banner has had no activity in the last 30 days and should be unpublished as routine hygiene.",
            "title" => "Unpublish inactive expired trial banner",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the banner with experience ID 640cee1c-858b-4ecc-9513-2f6eacb47b83 named 'Free Trial Expired' again, restoring it to a live published state."
          }
        ],
        "cta_text" => "Review inactive experience",
        "entity_id" => "640cee1c-858b-4ecc-9513-2f6eacb47b83",
        "entity_type" => "banner",
        "expected_impact" => "Unpublishing stale content reduces maintenance overhead and keeps your live experience inventory cleaner, making it easier to manage engagement and lifecycle messaging.",
        "finding" => "I reviewed published Flows, Pins, Banners, and Checklists that were published more than 3 weeks ago. **1 experience** had **no activity at all in the last 30 days**.\n\n- [**Free Trial Expired**](https://studio.appcues.com/banners/640cee1c-858b-4ecc-9513-2f6eacb47b83/settings)\n  - Type: **Banner**\n  - Last 30 days: **0 seen, 0 completed, 0 dismissed, 0 errors**\n  - Designed to: notify users that their free trial expired and prompt them to upgrade their account\n  - Targeting summary: shown on the app domain (excluding **/login** and **/register**) to users with an email, **license = false**, a **trial end date more than 1 day ago**, and who are **not** in the excluded broker-type audience\n  - Goals: **none configured**",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "1 published experience has had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "4a6ed7ea-3b6c-4220-85b6-8288bfa339c6",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777557502264628, "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