Hard-reload on integrity expiring during request;
Implement a way to hard-reload the application when the integrity token expires during a request, or inside its retry loop
This commit is contained in:
1 parent
f65c0922c2
commit
7d14b51221
4 files changed
+56
-15
No files matched your search
+14
-1
@@ -19,7 +19,20 @@ class ExitRequest(MinerException):
|
||||
if args:
|
||||
super().__init__(*args)
|
||||
else:
|
||||
super().__init__("Unknown error during request")
|
||||
super().__init__("Application was requested to exit")
|
||||
|
||||
|
||||
class ReloadRequest(MinerException):
|
||||
"""
|
||||
Raised when the application is requested to reload by an expired request.
|
||||
|
||||
Intended for internal use only.
|
||||
"""
|
||||
def __init__(self, *args: object):
|
||||
if args:
|
||||
super().__init__(*args)
|
||||
else:
|
||||
super().__init__("Application was requested to reload its state")
|
||||
|
||||
|
||||
class RequestException(MinerException):
|
||||
|
||||
Reference in new issue
Block a user