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
@@ -827,10 +827,10 @@ async def fail_crawl(
827
827
"""Mark crawl as failed, log crawl state and print crawl logs, if possible"""
828
828
prev_state = status .state
829
829
830
+ failed_state : Literal ["failed" , "failed_not_logged_in" ] = "failed"
831
+
830
832
if status .failReason and status .failReason == "not_logged_in" :
831
833
failed_state = "failed_not_logged_in"
832
- else :
833
- failed_state = "failed"
834
834
835
835
if not await self .mark_finished (crawl , status , failed_state , stats = stats ):
836
836
return False
You can’t perform that action at this time.
0 commit comments