Open krucod3 opened 2 months ago
The initial definition of a workload with an unknown runtime can be fixed by adding the following to the runtime_manager.rs add_workload method:
self.update_state_tx
.report_workload_execution_state(
&workload_spec.instance_name,
ExecutionState::starting_failed(format!(
"Runtime '{}' not found.",
workload_spec.runtime
)),
)
.await;
Let's shift this to the v0.6 as it is a minor and we don't have the time for it now.
Currently setting the runtime of a workload to something wrong is not handled correctly.
Current Behavior
If a workload is initially scheduled with a wrong runtime name, the workload stays in a
Pending(Initial)
state. Additionally if the runtime is changed for a running workload, a retry (20 times) is started to schedule the workload to the new not existing runtime.The ank CLI also did not exit after updating the workload back to an existing workload as it never received a removed for the old workload.
Expected Behavior
The starting of the workload shall fail.
Steps to Reproduce
Or
Context (Environment)
Logs
Additional Information
Final result
To be filled by the one closing the issue.