Ema has submitted this change and it was merged. Change subject: zerofetch.py: track successful executions ......................................................................
zerofetch.py: track successful executions Update the mtime of a "success-file" on successful runs. Bug: T132835 Change-Id: I9ae8b344bcc3c9a5209a982897ce86c51f93483a --- M modules/varnish/files/zerofetch.py 1 file changed, 5 insertions(+), 0 deletions(-) Approvals: Ema: Verified; Looks good to me, approved BBlack: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/modules/varnish/files/zerofetch.py b/modules/varnish/files/zerofetch.py index 310ebeb..9169185 100755 --- a/modules/varnish/files/zerofetch.py +++ b/modules/varnish/files/zerofetch.py @@ -135,6 +135,11 @@ # Remove the tempdir, which should be empty now via rename-or-remove above os.rmdir(tempdir) + # This has been a successful run, update mtime of the success file + # (by default: /var/netmapper/.update-success) + success_file = os.path.join(args.directory, ".update-success") + with open(success_file, 'a'): + os.utime(success_file, None) if __name__ == "__main__": main() -- To view, visit https://gerrit.wikimedia.org/r/294063 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9ae8b344bcc3c9a5209a982897ce86c51f93483a Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Ema <e...@wikimedia.org> Gerrit-Reviewer: BBlack <bbl...@wikimedia.org> Gerrit-Reviewer: Ema <e...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits