lib/foreman_tasks/dynflow.rb in foreman-tasks-0.8.2 vs lib/foreman_tasks/dynflow.rb in foreman-tasks-0.8.3

- old
+ new

@@ -42,12 +42,15 @@ unless config.remote? # don't try to do any rescuing until the tables are properly migrated if !Foreman.in_rake?('db:migrate') && (ForemanTasks::Task.table_exists? rescue(false)) config.run_on_init_hooks(world) - world.auto_execute - ForemanTasks::Task::DynflowTask.consistency_check + # leave this just for long-running executors + unless config.rake_task_with_executor? + world.auto_execute + ForemanTasks::Task::DynflowTask.consistency_check + end end end end end @@ -86,9 +89,12 @@ (Setting[:dynflow_console_require_auth] && !ConsoleAuthorizer.new(env).allow?) halt 403, 'Access forbidden' end end + set(:custom_navigation) do + { _("Back to tasks") => "/#{ForemanTasks::TasksController.controller_path}" } + end set(:world) { ForemanTasks.dynflow.world } end end def eager_load_actions!