You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Supporting a task to mark a restart of edgeboxctl.
Expected behaviour:
taskStartEdgeapp
, so it can be called from the dashboard interface or endpoints ofedgebox-iot/api
executing
(1) issued in the last minute, and mark it asfinished
(2).restart_edgeboxctl
, but the status should be set toerror
(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 entryrestart_edgebox
(maybe use a more extended grace period for the find query), and finish updating its status.The text was updated successfully, but these errors were encountered: