Skip to content

Conversation

@mirkoCrobu
Copy link
Contributor

@mirkoCrobu mirkoCrobu commented Nov 12, 2025

Motivation

closes https://github.com/bcmi-labs/orchestrator/issues/382

Change description

Adding API endpoint PUT /v1/system/update/stop.
It stops service and platform updates.

The update cancellation is implemented via a SIGTERM signal (context cancellation) to allow for a graceful shutdown.

apt-get, In some phases, traps this signal to complete its current critical operation before exiting, delaying the interruption.

Additional Notes

Test

  • Installing orchestrator with new features
  • Start listening to events
    curl -X GET localhost:8800/v1/system/update/events
  • Start updates
    curl -X PUT localhost:8800/v1/system/update/apply
  • After 0,5 -1-3 seconds, stop updates
    curl -X PUT localhost:8800/v1/system/update/stop

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.
@mirkoCrobu mirkoCrobu self-assigned this Nov 12, 2025
@mirkoCrobu mirkoCrobu requested a review from a team November 12, 2025 14:47
@lucarin91
Copy link
Contributor

@mirkoCrobu can you fix the conflicts?

@mirkoCrobu mirkoCrobu force-pushed the issue_382_api_stop_running_upgrade branch from 552db79 to dfc7c3d Compare December 16, 2025 16:45
@mirkoCrobu mirkoCrobu requested review from a team and giulio93 December 16, 2025 16:45
@mirkoCrobu mirkoCrobu force-pushed the issue_382_api_stop_running_upgrade branch from 9054051 to d488509 Compare December 17, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants