- This topic has 3 replies, 2 voices, and was last updated 2 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › FABRIC General Questions and Discussion › Slice expiration extension
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
sorry to post the topic twice due to unstable networking, please feel free to delete one of these.
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
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.