From c1fb76d1e7105ce09a17df9bfa969ef7e90ee8f3 Mon Sep 17 00:00:00 2001 From: David Debeau Date: Tue, 8 Feb 2022 20:23:00 -0600 Subject: [PATCH 1/2] Set `misfire_grace_time` in `job_defaults` --- zfs_uploader/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zfs_uploader/__main__.py b/zfs_uploader/__main__.py index 587e604..6399caa 100644 --- a/zfs_uploader/__main__.py +++ b/zfs_uploader/__main__.py @@ -52,7 +52,8 @@ def backup(ctx): config = Config(config_path) scheduler = BlockingScheduler( - executors={'default': ThreadPoolExecutor(max_workers=1)} + executors={'default': ThreadPoolExecutor(max_workers=1)}, + job_defaults={'misfire_grace_time': None} ) for job in config.jobs.values(): From ae4cf83c50f6f5205292c6d16ac7e206f2e9756e Mon Sep 17 00:00:00 2001 From: David Debeau Date: Tue, 8 Feb 2022 20:30:05 -0600 Subject: [PATCH 2/2] Update changelog and bump version --- CHANGELOG.md | 8 ++++++++ zfs_uploader/__init__.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5466e5..db997ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.7.1](https://github.com/ddebeau/zfs_uploader/compare/0.7.0...0.7.1) 2022-02-08 + +### Fixed + +- Fix `misfire_grace_time` issue where a job could get skipped if it was + scheduled too close to another job. +[#56](https://github.com/ddebeau/zfs_uploader/issues/56) + ## [0.7.0](https://github.com/ddebeau/zfs_uploader/compare/0.6.0...0.7.0) 2022-01-27 ### Added diff --git a/zfs_uploader/__init__.py b/zfs_uploader/__init__.py index 8c34eb1..69990a7 100644 --- a/zfs_uploader/__init__.py +++ b/zfs_uploader/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.7.0' +__version__ = '0.7.1' BACKUP_DB_FILE = 'backup.db' DATETIME_FORMAT = '%Y%m%d_%H%M%S'