fix statemachine create_root_snapshot and retry timing

This commit is contained in:
Nick Sweeting 2024-11-17 22:57:09 -08:00
parent 67c22b2df0
commit 1ec2753664
No known key found for this signature in database
8 changed files with 48 additions and 40 deletions

View file

@ -52,7 +52,7 @@ class CrawlMachine(StateMachine, strict_states=True):
def enter_started(self):
print(f'CrawlMachine[{self.crawl.ABID}].on_started(): crawl.create_root_snapshot() + crawl.bump_retry_at(+10s)')
self.crawl.status = Crawl.StatusChoices.STARTED
self.crawl.bump_retry_at(seconds=10)
self.crawl.bump_retry_at(seconds=2)
self.crawl.save()
self.crawl.create_root_snapshot()