Add cronjob to run Import::WatcherJob every 1 hour

This commit is contained in:
Eugene Burmakin 2024-10-03 15:12:19 +02:00
parent d4e2e5006e
commit 200bc980e5
3 changed files with 15 additions and 15 deletions

View file

@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
# 0.15.0 - 2024-10-03
### Added
- You can now put your GPX and GeoJSON files to `tmp/imports/watched` directory and Dawarich will automatically import them. This is useful if you have a service that can put files to the directory automatically. The directory is being watched every 60 minutes for new files.
### Changed
- Monkey patch for Geocoder to support http along with https for Photon API host was removed becausee it was breaking the reverse geocoding process. Now you can use only https for the Photon API host. This might be changed in the future
# [0.14.7] - 2024-10-01
### Fixed

View file

@ -1,15 +0,0 @@
# frozen_string_literal: true
# By default, Geocoder supports only https protocol when talking to Photon API.
# This is kinda inconvenient when you're running a local instance of Photon
# and want to use http protocol. This monkey patch allows you to do that.
module Geocoder::Lookup
class Photon < Base
private
def supported_protocols
%i[https http]
end
end
end

View file

@ -14,3 +14,8 @@ visit_suggesting_job:
cron: "0 1 * * *" # every day at 1:00
class: "VisitSuggestingJob"
queue: default
watcher_job:
cron: "0 */1 * * *" # every 1 hour
class: "Import::WatcherJob"
queue: default