Skip to content

Commit 6c91ab0

Browse files
committed
update restartTime to force crawl pod restart
1 parent 71ed920 commit 6c91ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/btrixcloud/crawlmanager.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,17 @@ async def update_running_crawl_config(
251251
self, crawl_id: str, crawlconfig: CrawlConfig
252252
):
253253
"""force update of config for running crawl"""
254+
time_now = date_to_str(dt_now())
255+
254256
# pylint: disable=use-dict-literal
255257
patch = dict(
256258
crawlerChannel=crawlconfig.crawlerChannel,
257259
scale=crawlconfig.scale,
258260
timeout=crawlconfig.crawlTimeout,
259261
maxCrawlSize=crawlconfig.maxCrawlSize,
260262
proxyId=crawlconfig.proxyId or DEFAULT_PROXY_ID,
261-
lastConfigUpdate=date_to_str(dt_now()),
263+
lastConfigUpdate=time_now,
264+
restartTime=time_now,
262265
)
263266

264267
return await self._patch_job(crawl_id, patch)

0 commit comments

Comments
 (0)