fix: resume CBB batches after verified native release
This commit is contained in:
1 parent
c76b755f13
commit
5bab125122
18 files changed
+642
-60
No files matched your search
@@ -13,7 +13,7 @@ class QueueCancelled(RuntimeError):
|
||||
|
||||
class QueueUnavailable(RuntimeError):
|
||||
"""Admission failed before action dispatch; this task created no native session."""
|
||||
def __init__(self, library, sessions=(), *, timed_out=False):
|
||||
def __init__(self, library, sessions=(), *, timed_out=False, detail=''):
|
||||
self.library = str(library)
|
||||
self.sessions = tuple(sessions)
|
||||
self.timed_out = timed_out
|
||||
@@ -24,6 +24,8 @@ class QueueUnavailable(RuntimeError):
|
||||
details.append(' / '.join(filter(None, (block, session.get('operation_id'),
|
||||
resources, session.get('path')))))
|
||||
message = f'NATIVE_SESSION_PENDING: {self.library} 的已登记会话待释放,当前项未启动。'
|
||||
if detail:
|
||||
details.insert(0, detail)
|
||||
super().__init__(message + (' ' + ';'.join(details) if details else ''))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user