mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 02:46:11 +02:00
Check all installed plugins update every hour
This commit is contained in:
parent
8c02275e96
commit
a1b159dd8b
14
app/workers/all_plugin_check_update.rb
Normal file
14
app/workers/all_plugin_check_update.rb
Normal file
@ -0,0 +1,14 @@
|
||||
class AllPluginCheckUpdate
|
||||
include SuckerPunch::Job
|
||||
|
||||
def perform
|
||||
Plugin.installed.each do |pl|
|
||||
GemUpdateCheck.new.async.perform(pl.gem_name)
|
||||
end
|
||||
later(3600) # will be checked every hour
|
||||
end
|
||||
|
||||
def later(sec)
|
||||
after(sec) { perform }
|
||||
end
|
||||
end
|
||||
@ -1,3 +1 @@
|
||||
Plugin.installed.each do |pl|
|
||||
GemUpdateCheck.new.async.perform(pl.gem_name)
|
||||
end
|
||||
AllPluginCheckUpdate.new.async.perform
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user