fix issued cert

This commit is contained in:
2025-09-18 17:11:38 -03:00
parent a83d4b56aa
commit 0501dc8f16
4 changed files with 43 additions and 31 deletions

View File

@@ -55,6 +55,7 @@ def update_progress(
key=KeyPair(id, '0'),
update_expr='SET progress = :progress, \
#status = :in_progress, \
started_at = :now, \
updated_at = :now',
cond_expr='#status = :pending',
expr_attr_names={
@@ -73,7 +74,7 @@ def update_progress(
item={
'id': id,
'sk': 'STARTED',
'started_at': now_,
'created_at': now_,
},
cond_expr='attribute_not_exists(sk)',
)
@@ -191,6 +192,7 @@ def _set_status_as_completed(
update_expr='SET #status = :completed, \
progress = :progress, \
score = :score, \
completed_at = :now, \
updated_at = :now',
cond_expr='#status = :in_progress',
expr_attr_names={'#status': 'status'},
@@ -207,7 +209,7 @@ def _set_status_as_completed(
item={
'id': id,
'sk': 'COMPLETED',
'completed_at': now_,
'created_at': now_,
},
cond_expr='attribute_not_exists(sk)',
)
@@ -291,6 +293,7 @@ def _set_status_as_failed(
progress = :progress, \
score = :score, \
access_expired = :true, \
failed_at = :now, \
updated_at = :now',
cond_expr='#status = :in_progress',
expr_attr_names={'#status': 'status'},
@@ -308,7 +311,7 @@ def _set_status_as_failed(
item={
'id': id,
'sk': 'FAILED',
'failed_at': now_,
'created_at': now_,
},
cond_expr='attribute_not_exists(sk)',
)