Skip to content

Commit 9ca184f

Browse files
committed
temporary
1 parent 5f6f2b8 commit 9ca184f

File tree

1 file changed

+9
-0
lines changed
  • jaseci_ai_kit/jac_misc/jac_misc/scraper

1 file changed

+9
-0
lines changed

jaseci_ai_kit/jac_misc/jac_misc/scraper/utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,24 @@ class Stopped(Exception):
1111
@staticmethod
1212
def add(trigger_id: str):
1313
Process.queue.add(trigger_id)
14+
print(Process.queue)
1415

1516
@staticmethod
1617
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)
1722
if can := (trigger_id in Process.queue):
1823
Process.queue.remove(trigger_id)
1924
return not can
2025

2126
@staticmethod
2227
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)
2332
if trigger_id in Process.queue:
2433
Process.queue.remove(trigger_id)
2534
raise Process.Stopped()

0 commit comments

Comments
 (0)