Skip to content

Commit

Permalink
added method for appending delayed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kalessin committed Oct 13, 2023
1 parent 0b5ab6f commit ff4d210
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shub_workflow/crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def __init__(self):
def get_delayed_jobs(self) -> List[FullJobParams]:
return deepcopy(self.__delayed_jobs)

def add_delayed_jobs(self, params: FullJobParams):
self.__delayed_jobs.append(params)

@classmethod
def create_dupe_filter(cls) -> DupesFilterProtocol:
return BloomFilter(max_elements=1e6, error_rate=1e-6)
Expand Down

0 comments on commit ff4d210

Please sign in to comment.