Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bliss bliss
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 540
    • Issues 540
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 148
    • Merge requests 148
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • BlissBliss
  • blissbliss
  • Merge requests
  • !3655

Emit a PrepareScanEvent

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Valentin Valls requested to merge valentin.valls/bliss:add-device-meta-to-scan_info into master Apr 20, 2021
  • Overview 70
  • Commits 18
  • Pipelines 17
  • Changes 16

This MR is related to #2705 (closed) and related to scan data publishing inside Redis.

This introduce a PrepareScanEvent

  • It is emitted just after the whole devices was prepared, and just before any data was emitted
  • This is exposed in client side as on_scan_started
  • The previously called on_scan_started was renamed on_scan_created

Client side code can monitor the scans the following way:

  • on_scan_created
  • prepare the devices
  • on_scan_started
  • the bunch of data
  • on_scan_finished

This will allow to update the scan_info with updated metadata from prepared devices.

Edited May 04, 2021 by Valentin Valls
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: add-device-meta-to-scan_info