Skip to content

Commit d0833be

Browse files
authored
Install nightly Rust daily instead of every 2 to 3 days (#2072)
1 parent 707cd0f commit d0833be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/lib/installable/rust.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def should_install(self) -> bool:
8484
dest_dir = self.install_context.destination / self.install_path
8585
if os.path.exists(dest_dir):
8686
dtime = datetime.fromtimestamp(dest_dir.stat().st_mtime)
87-
# The fudge factor of 30m is to sort of account for the installation time. Else
87+
# The fudge factor of 90m is to sort of account for the installation time. Else
8888
# we start up the same time the next day and we get a 23hr58 minute old build and we
8989
# don't reinstall.
90-
age = datetime.now() - dtime + timedelta(minutes=30)
90+
age = datetime.now() - dtime + timedelta(minutes=90)
9191
self._logger.info("Nightly build %s is %s old", dest_dir, age)
92-
if age.days > self.nightly_install_days:
92+
if age > timedelta(days=self.nightly_install_days):
9393
return True
9494
return super().should_install()
9595

0 commit comments

Comments
 (0)