1. Slice expiration extension

Slice expiration extension

Home Forums FABRIC General Questions and Discussion Slice expiration extension

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1452
    Xusheng Ai
    Participant

      Hello Paul,

      When I create a slice, it will be deleted automatically after two days. Does it relate to the slice expiration?

      If so, I was wondering if there was a possible way to extend the expiration time when we try to deploy the project?

      Thanks,
      Best Regards,
      Xusheng

      #1453
      Xusheng Ai
      Participant

        sorry to post the topic twice due to unstable networking, please feel free to delete one of these.

        #1465
        Xusheng Ai
        Participant

          I found the jupyter example on the Github about how to renew the slice. However, when I run the command, the Lease End didn’t change.

           

          # renew
          import datetime
          
          #Set end host to now plus 1 day
          end_date = (datetime.datetime.now() + datetime.timedelta(days=6)).strftime("%Y-%m-%d %H:%M:%S")
          print(end_date)
          try:
              slice = fablib.get_slice(name=slice_name)
              slice.renew(end_date)
          except Exception as e:
              print(f"Get Slices Fail: {e}")
              traceback.print_exc()

          Here is the end_date : 2022-03-16 00:12:32

          #check new days
          try:
              slice = fablib.get_slice(name=slice_name)
              print(f"Lease End         : {slice.get_lease_end()}")
                 
          except Exception as e:
              print(f"Fail: {e}")
              traceback.print_exc()

          The Lease End is still two days after : 2022-03-11 00:09:50

          • This reply was modified 2 years, 9 months ago by Xusheng Ai.
          #1508
          Paul Ruth
          Keymaster

            We are aware of this are working on it.

            Thanks for the bug report. If you see any other issues, feel free to post them here.

             

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.