Skip to content

Commit

Permalink
add log and update future start time in DB for Slice
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Oct 30, 2024
1 parent 5d74fe8 commit 474d3ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fabric_cf/actor/core/manage/management_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class ManagementUtils:
@staticmethod
def update_slice(*, slice_obj: ABCSlice, slice_mng: SliceAvro) -> ABCSlice:
slice_obj.set_graph_id(graph_id=slice_mng.get_graph_id())
slice_obj.set_lease_start(lease_start=slice_mng.get_lease_start())
slice_obj.set_lease_end(lease_end=slice_mng.get_lease_end())
slice_obj.set_config_properties(value=slice_mng.get_config_properties())
return slice_obj
Expand Down
1 change: 1 addition & 0 deletions fabric_cf/orchestrator/core/orchestrator_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def create_slice(self, *, token: str, slice_name: str, slice_graph: str, ssh_key
future_start, future_end = self.controller_state.determine_future_lease_time(computed_reservations=computed_reservations,
start=lease_start_time, end=lease_end_time,
duration=lifetime)
self.logger.debug(f"Advanced Scheduling: Slice: {slice_name}({slice_id}) lifetime: {future_start} to {future_end}")
slice_obj.set_lease_start(lease_start=future_start)
slice_obj.set_lease_end(lease_end=future_end)
self.logger.debug(f"Update Slice {slice_name}")
Expand Down

0 comments on commit 474d3ee

Please sign in to comment.