Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.toolbox
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.toolbox
  • Merge requests
  • !90

Merged
Created Jan 26, 2021 by Xavier Thompson@xavier_thompsonOwner

promise/plugin: Implement check_service_state promise plugin

  • Overview 15
  • Commits 1
  • Changes 2

Add a promise plugin to check that the current state of a supervisord service matches the expected state.

This is step 2 of a 3-step plan to add an "autorun" feature to theia (See discussion in slapos!888 (merged)):

  • Step 1: Add a slapos-node-auto service to slap/standalone: See slapos.core!280 (merged)
  • Step 2: Create this generic promise plugin to check the state of a service.
  • Step 3: Add an autorun option to software/theia with 3 possible values:
    • running: buildout starts slapos-node-auto and a promise is used to check that it is running
    • stopped: buildout stops slapos-node-auto and a promise is used to check that it is stopped
    • undefined: buildout leaves slapos-node-auto as is, the promise is always fulfilled.
Edited Feb 03, 2021 by Xavier Thompson
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: service_state_promise
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7