File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
backend/btrixcloud/operator Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
import os
5
5
import math
6
6
from pprint import pprint
7
- from typing import Optional , Any , Sequence
7
+ from typing import Optional , Any , Sequence , Literal
8
8
from datetime import datetime , timedelta
9
9
from uuid import UUID
10
10
@@ -832,10 +832,10 @@ async def fail_crawl(
832
832
"""Mark crawl as failed, log crawl state and print crawl logs, if possible"""
833
833
prev_state = status .state
834
834
835
+ failed_state : Literal ["failed" , "failed_not_logged_in" ] = "failed"
836
+
835
837
if status .failReason and status .failReason == "not_logged_in" :
836
838
failed_state = "failed_not_logged_in"
837
- else :
838
- failed_state = "failed"
839
839
840
840
if not await self .mark_finished (crawl , status , failed_state , stats = stats ):
841
841
return False
You can’t perform that action at this time.
0 commit comments