Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nomad-lab
  • nomad-FAIRnomad-FAIR
  • Merge requests
  • !500

Merged
Created Dec 21, 2021 by David Sikter@dsikterDeveloper

Simplify processing logic

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

Simplifies the logic by reducing the number of sync operations to 2 (instead of 3). Items are only added to the queue if a process is already running, and they are popped off the queue when the task finishes.

Also ensures that the processing should work even if the mongo document does not have any queue or sync_counter attribute set (for example when they have been migrated from v0).

Also restricts the resetting of existing entries when reprocessing to only the ones that actually have status processing, as it should not be necessary to reset any other entries (this should anyway really only happen if something has gone wrong).

Edited Dec 21, 2021 by David Sikter
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: simplify-processing