Enable periodical job

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-04-19 10:12:31 +09:00
parent d02e1bac38
commit c4d7698b20
2 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,6 @@ class AllPluginCheckUpdateJob < ApplicationJob
Plugin.installed.each do |pl|
GemUpdateCheckJob.perform_later(pl.gem_name)
end
# sucker_punch adapter does not implement enqueue_at
# AllPluginCheckUpdateJob.set(wait: 1.hour).perform_later # will be checked every hour
AllPluginCheckUpdateJob.set(wait: 1.hour).perform_later # will be checked every hour
end
end

View File

@ -6,7 +6,6 @@ class FluentdUiUpdateCheckJob < ApplicationJob
if pl.gem_versions
FluentdUI.latest_version = pl.latest_version
end
# sucker_punch adapter does not implement enqueue_at
# FluentdUiUpdateCheckJob.set(wait: 1.hour).perfom_later # will be checked every hour
FluentdUiUpdateCheckJob.set(wait: 1.hour).perform_later # will be checked every hour
end
end