File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
jaseci_ai_kit/jac_misc/jac_misc/scraper Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,24 @@ class Stopped(Exception):
11
11
@staticmethod
12
12
def add (trigger_id : str ):
13
13
Process .queue .add (trigger_id )
14
+ print (Process .queue )
14
15
15
16
@staticmethod
16
17
def can_continue (trigger_id : str ):
18
+ print ("########### can_continue" )
19
+ print (Process .queue )
20
+ print (trigger_id )
21
+ print (trigger_id in Process .queue )
17
22
if can := (trigger_id in Process .queue ):
18
23
Process .queue .remove (trigger_id )
19
24
return not can
20
25
21
26
@staticmethod
22
27
def has_to_stop (trigger_id : str ):
28
+ print ("########### has_to_stop" )
29
+ print (Process .queue )
30
+ print (trigger_id )
31
+ print (trigger_id in Process .queue )
23
32
if trigger_id in Process .queue :
24
33
Process .queue .remove (trigger_id )
25
34
raise Process .Stopped ()
You can’t perform that action at this time.
0 commit comments