change posting behavior on startup
This commit is contained in:
parent
a4cdc10c4f
commit
2229bd9183
2 changed files with 8 additions and 3 deletions
|
@ -6,11 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
### Changed
|
||||
- when starting the app in daemon mode, the app will now wait one complete interval until it posts the next post
|
||||
instead of immediately posting one bundle
|
||||
|
||||
## [v0.2.0] - 2023-06-11
|
||||
### Added
|
||||
- Added cli option `queue show` to list currently queued bundles [#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
|
||||
- Added cli option `queue fill` to query humblebundle.com for new bundles and then fill the queue [#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
|
||||
- Added cli option `queue show` to list currently queued bundles
|
||||
[#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
|
||||
- Added cli option `queue fill` to query humblebundle.com for new bundles and then fill the queue
|
||||
[#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
|
||||
- Added cli option `queue remove` to remove a queued up bundle [#2](https://git.lauka.net/lauralani/humble-bot/issues/2)
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -28,7 +28,7 @@ func StartCronJobs() {
|
|||
return
|
||||
}
|
||||
|
||||
_, err = s.Every(viper.GetString("mastodon.postinterval")).Do(RunSingleQueueItem)
|
||||
_, err = s.Every(viper.GetString("mastodon.postinterval")).WaitForSchedule().Do(RunSingleQueueItem)
|
||||
if err != nil {
|
||||
log.Error().Str("func", "StartCronJobs").Str("job", "RunSingleQueueItem").
|
||||
Msgf("Scheduler Error: %q", err)
|
||||
|
|
Loading…
Reference in a new issue