Skip to content

Commit 4955c74

Browse files
committed
add success flag
1 parent 484a476 commit 4955c74

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 7, 8)
1+
VERSION = (0, 7, 9)
22

33
__version__ = '.'.join(map(str, VERSION))

acedatacloud_scaffold/handlers/callback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def write_success_async(self, data, status=200, headers={}):
2525
data['task_id'] = self.task_id
2626
# append trace id
2727
data['trace_id'] = self.trace_id
28+
data['success'] = True
2829
self.send_callback(data)
2930

3031
def write_index(self):
@@ -63,6 +64,7 @@ def write_error_async(self, status_code, **kwargs):
6364
data = {
6465
'task_id': self.task_id,
6566
'trace_id': self.trace_id,
67+
'success': False,
6668
'error': {
6769
'code': (exception.code if hasattr(exception, 'code') else
6870
exception.default_code) if isinstance(exception, APIException) else ERROR_CODE_API_ERROR,

0 commit comments

Comments
 (0)