25368269 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.302
Run Time 00:00.006
Inserted 6h ago
Scheduled 6h ago
Completed
Cancelled
Discarded 6h ago

Args

%{
  "account_id" => "224039",
  "data" => %{
    "account_insight_agent_id" => "bc3ca86f-63a5-4292-aa65-72ffb39fc10c",
    "insights" => [
      %{
        "action_plan" => "The first 10 properties have quick-action buttons to hide them individually. The remaining 4 properties (nickname, tenant_id, title, user) can be hidden through Captain AI — ask it to hide them by name — or updated manually in the segment builder UI. Hiding is non-destructive — property data is retained and any property can be made visible again at any time.",
        "actions" => [
          %{
            "cta" => "Run",
            "prompt" => "Update user property '_appcuesForm_how-was-your-onboarding-experience' and set show_in_ui to false.",
            "title" => "Hide _appcuesForm_how-was-your-onboarding-experience",
            "undo_prompt" => "Update user property '_appcuesForm_how-was-your-onboarding-experience' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property '_appcuesForm_was-anything-unclear-missing-or-harder-than-expected' and set show_in_ui to false.",
            "title" => "Hide _appcuesForm_was-anything-unclear-missing-or-harder-than-expected",
            "undo_prompt" => "Update user property '_appcuesForm_was-anything-unclear-missing-or-harder-than-expected' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'cost_center' and set show_in_ui to false.",
            "title" => "Hide cost_center",
            "undo_prompt" => "Update user property 'cost_center' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'created_at' and set show_in_ui to false.",
            "title" => "Hide created_at",
            "undo_prompt" => "Update user property 'created_at' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'department' and set show_in_ui to false.",
            "title" => "Hide department",
            "undo_prompt" => "Update user property 'department' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'employee_id' and set show_in_ui to false.",
            "title" => "Hide employee_id",
            "undo_prompt" => "Update user property 'employee_id' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'identities' and set show_in_ui to false.",
            "title" => "Hide identities",
            "undo_prompt" => "Update user property 'identities' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'last_ip' and set show_in_ui to false.",
            "title" => "Hide last_ip",
            "undo_prompt" => "Update user property 'last_ip' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'last_password_reset' and set show_in_ui to false.",
            "title" => "Hide last_password_reset",
            "undo_prompt" => "Update user property 'last_password_reset' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update user property 'manager' and set show_in_ui to false.",
            "title" => "Hide manager",
            "undo_prompt" => "Update user property 'manager' and set show_in_ui to true."
          }
        ],
        "cta_text" => nil,
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Cleaner segment builder with only active properties",
        "finding" => "Found 14 stale user properties that are visible, not auto-tracked, and not used by any experience.\n\nLast seen > 90 days ago:\n\n_appcuesForm_was-anything-unclear-missing-or-harder-than-expected - [View](https://studio.appcues.com/settings/properties/user?search=_appcuesForm_was-anything-unclear-missing-or-harder-than-expected)\n\nlast_password_reset - [View](https://studio.appcues.com/settings/properties/user?search=last_password_reset)\n\nLast seen 60–90 days ago:\n\n_appcuesForm_how-was-your-onboarding-experience - [View](https://studio.appcues.com/settings/properties/user?search=_appcuesForm_how-was-your-onboarding-experience)\n\ncreated_at - [View](https://studio.appcues.com/settings/properties/user?search=created_at)\n\nidentities - [View](https://studio.appcues.com/settings/properties/user?search=identities)\n\nlast_ip - [View](https://studio.appcues.com/settings/properties/user?search=last_ip)\n\nnickname - [View](https://studio.appcues.com/settings/properties/user?search=nickname)\n\nuser - [View](https://studio.appcues.com/settings/properties/user?search=user)\n\nLast seen 30–60 days ago:\n\ncost_center - [View](https://studio.appcues.com/settings/properties/user?search=cost_center)\n\ndepartment - [View](https://studio.appcues.com/settings/properties/user?search=department)\n\nemployee_id - [View](https://studio.appcues.com/settings/properties/user?search=employee_id)\n\nmanager - [View](https://studio.appcues.com/settings/properties/user?search=manager)\n\ntenant_id - [View](https://studio.appcues.com/settings/properties/user?search=tenant_id)\n\ntitle - [View](https://studio.appcues.com/settings/properties/user?search=title)",
        "outcomes" => [],
        "priority" => "high",
        "title" => "Found 14 stale user properties to hide",
        "type" => "opportunity"
      }
    ]
  },
  "notification_id" => "3eacfa2f-1f5c-4883-bcc0-11d7389f45b6",
  "workflow_key" => "insight-opportunity-added"
}

Meta

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

Errors

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