Skip to content

Commit

Permalink
Set start_time value at creating an instance
Browse files Browse the repository at this point in the history
Previously InstanceGroup was set start_time information at creating,
however, the operation was lost when splitting `cvd start` into `create`
and `start`.
It brings back the setting operation.
  • Loading branch information
oribe1115 authored and Databean committed Sep 11, 2024
1 parent b10076b commit c097e8b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ Result<cvd::Response> CvdCreateCommandHandler::Handle(
auto group = CF_EXPECT(GetOrCreateGroup(subcmd_args, envs, request));

group.SetAllStates(cvd::INSTANCE_STATE_STOPPED);
group.SetStartTime(selector::CvdServerClock::now());
instance_manager_.UpdateInstanceGroup(group);

cvd::Response response;
Expand Down

0 comments on commit c097e8b

Please sign in to comment.