Skip to content

Commit

Permalink
Merge pull request #57 from ddebeau/fix/misfire-grace-time
Browse files Browse the repository at this point in the history
Set `misfire_grace_time` in `job_defaults`
  • Loading branch information
ddebeau authored Feb 9, 2022
2 parents af5868f + ae4cf83 commit 0a9e662
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion zfs_uploader/__init__.py
Original file line number Diff line number Diff line change
@@ -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'
3 changes: 2 additions & 1 deletion zfs_uploader/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 0a9e662

Please sign in to comment.