Class: Marty::BackgroundJob::ScheduleJobsDashboard
- Includes:
- Extras::Layout
- Defined in:
- app/components/marty/background_job/schedule_jobs_dashboard.rb
Constant Summary
Constants included from Extras::Layout
Extras::Layout::BOOL_MAP, Extras::Layout::MAP_BOOL
Constants included from Permissions
Instance Method Summary collapse
Methods included from Extras::Layout
#bool_getter, #bool_setter, #dispfield, #enum_array, #enum_column, #enum_setter, #fieldset, #get_sorter, #hbox, #hspacer, #jsonb_field, #nullable_bool_column, #range_column, #range_field, #range_getter, #range_setter, #textarea_field, #tooltip, #vbox, #vspacer
Methods included from Permissions
#can_call_endpoint?, #can_perform_action?, #can_perform_actions, #current_user_roles, extended, #has_any_perm?, #has_marty_permissions, #has_perm?
Instance Method Details
#configure(c) ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/components/marty/background_job/schedule_jobs_dashboard.rb', line 8 def configure(c) super c.items = [ :schedule_jobs_grid, :schedule_jobs_warnings ] end |
#default_bbar ⇒ Object
48 49 50 |
# File 'app/components/marty/background_job/schedule_jobs_dashboard.rb', line 48 def [] end |
#prepare_warnings ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/components/marty/background_job/schedule_jobs_dashboard.rb', line 16 def prepare_warnings djs = ::Marty::BackgroundJob::FetchMissingInScheduleCronJobs.call = djs.map do |dj| handler_str = dj.handler[/job_class.*\n/] job_class = handler_str.gsub('job_class:', '').strip "#{job_class} with cron #{dj.cron} and schedule_id #{dj.schedule_id}" \ 'is present in delayed_jobs table, but is missing in the Dashboard.' end .join('<br>') end |