operator: ensure finished is always set (#953)
This commit is contained in:
parent
99117a532b
commit
7139b9a7a9
@ -629,6 +629,9 @@ class BtrixOperator(K8sAPI):
|
||||
state, status, crawl_id, allowed_from=allowed_from, **kwargs
|
||||
):
|
||||
print("already finished, ignoring mark_finished")
|
||||
if not status.finished:
|
||||
status.finished = to_k8s_date(finished)
|
||||
|
||||
return status
|
||||
|
||||
status.finished = to_k8s_date(finished)
|
||||
|
Loading…
Reference in New Issue
Block a user