Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Implementing task: Restart edgeboxctl #11

Open
paulotruta opened this issue Jun 2, 2021 · 0 comments
Open

[FEATURE] Implementing task: Restart edgeboxctl #11

paulotruta opened this issue Jun 2, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@paulotruta
Copy link
Member

paulotruta commented Jun 2, 2021

Supporting a task to mark a restart of edgeboxctl.

Expected behaviour:

  • A new task ´taskRestartEdgeboxctl´ is supported in the codebase.
  • Behaves like any other task such as taskStartEdgeapp, so it can be called from the dashboard interface or endpoints of edgebox-iot/api
  • Since terminating the program will not allow it to save state on the database, On edgeboxctl's 1st valid work tick, which is supposedly after a restart, the system should fetch the latest restart task with status executing (1) issued in the last minute, and mark it as finished (2).
  • If no restart task is found on the DB within that time span, it means that the program might have crashed and restarted by itself, or has been manually restarted. In this case, a Task entry should be created on the database with restart_edgeboxctl, but the status should be set to error (3).

EDIT: We can potentially also implement taskRestartEdgebox, which can issue a full system restart. The 1st work tick can then also search for a Task entry restart_edgebox (maybe use a more extended grace period for the find query), and finish updating its status.

@paulotruta paulotruta self-assigned this Jun 2, 2021
@paulotruta paulotruta added the enhancement New feature or request label Jun 2, 2021
@paulotruta paulotruta changed the title Implementing task: Restart edgeboxctl [FEATURE] Implementing task: Restart edgeboxctl Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant