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

Args

%{
  "account_id" => "93727",
  "data" => %{
    "account_insight_agent_id" => "2b5da6c6-e8e1-4c1a-b070-6a7dad51d3a6",
    "insights" => [
      %{
        "action_plan" => "Treat this as routine experience hygiene: review whether this UAT-only test flow still serves a purpose. If not, unpublish it to keep your published inventory clean and reduce clutter in ongoing audits. If it is still needed for future testing, leave it published but consider renaming or documenting it clearly as a test asset.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product support publishing tools to unpublish the published web flow with experience ID `ddf1ce87-a909-46c5-9ce5-4fe7eae347fb` named `NORI-test`. This flow has had 0 seen events and 0 completions in the last 30 days and is being flagged for routine content hygiene review.",
            "title" => "Unpublish inactive legacy test flow",
            "undo_prompt" => "Use the product support publishing tools to publish the web flow with experience ID `ddf1ce87-a909-46c5-9ce5-4fe7eae347fb` named `NORI-test` so it becomes live again."
          }
        ],
        "cta_text" => "Review inactive experience",
        "entity_id" => "ddf1ce87-a909-46c5-9ce5-4fe7eae347fb",
        "entity_type" => "flow",
        "expected_impact" => "Unpublishing unused legacy content keeps your live experience inventory easier to manage and reduces the chance of outdated test content being mistaken for active production guidance.",
        "finding" => "I reviewed published experiences that were published more than 3 weeks ago and checked for activity in the last 30 days.\n\nInactive experience:\n- [NORI-test](https://studio.appcues.com/flows/ddf1ce87-a909-46c5-9ce5-4fe7eae347fb/settings)\n  - Type: Flow\n  - Last 30 days: **0 seen**, **0 completed**\n  - Published: **2023-12-22**\n  - Designed to do: a guided dashboard tour introducing the new dashboard, side menu, account controls, quick links, and open parties. Based on its targeting, it appears to be a **legacy test/UAT flow** limited to **my.uat.norwex.com** and a single specific user, with **no goals attached**.",
        "outcomes" => ["engagement", "retention"],
        "priority" => "medium",
        "title" => "1 published experience has had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "fb878525-fa74-4759-b515-43cd9feaead3",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

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