Skip to content

fix: pause 60s in send_cve_to_snow to fix Lightspeed ingest race condition#146

Merged
toharris-rh merged 1 commit into
mainfrom
fix/send-cve-lightspeed-ingest-delay
Jun 18, 2026
Merged

fix: pause 60s in send_cve_to_snow to fix Lightspeed ingest race condition#146
toharris-rh merged 1 commit into
mainfrom
fix/send-cve-lightspeed-ingest-delay

Conversation

@toharris-rh

Copy link
Copy Markdown
Owner

Summary

Fixes a race condition in the Lightspeed Patching - SNow CVE Demo workflow where send_cve_to_snow.yml queried the Lightspeed vulnerability API before it had ingested the new CVE state uploaded by insights-client.

  • Adds a 60-second ansible.builtin.pause as the first task in playbooks/servicenow/send_cve_to_snow.yml, before any Lightspeed API calls
  • Includes a comment explaining the race condition so the pause doesn't look like dead code
  • Updates CHANGELOG.md

Closes #145.

🤖 Generated with Claude Code

insights-client uploads the new vulnerability state to console.redhat.com,
but Lightspeed needs ~60s to ingest it and surface the CVE in the
vulnerability API. Without the pause the CVE demo workflow queries before
the CVE is visible, returning stale results and sending the wrong CVE (or
nothing) to ServiceNow.

Adds an ansible.builtin.pause as the first task in send_cve_to_snow.yml,
before any Lightspeed API calls. Closes #145.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@toharris-rh toharris-rh requested a review from ericcames as a code owner June 18, 2026 00:22
@toharris-rh toharris-rh merged commit 96ddef3 into main Jun 18, 2026
2 checks passed
@toharris-rh toharris-rh deleted the fix/send-cve-lightspeed-ingest-delay branch June 18, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: race condition in SNow CVE Demo — Lightspeed not yet ingested CVE when send_cve_to_snow runs

1 participant