foreman-tasks 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5c591217c85cb51b8bfa6372cac7b6eca2010a6b574da5f85c970ad83392641
4
- data.tar.gz: 49e5c517005966476ee6ffca2d61998a8fb9ce89f5c621e8fcecb8ed5dc6917c
3
+ metadata.gz: 88767e3fa6070985ad11cf3ebe2ffec115a849a35d68ba9822b799ada08f20fd
4
+ data.tar.gz: 9e839c4b8fcca99cba833f26950c784589477c7efa487953adf20622575e1e92
5
5
  SHA512:
6
- metadata.gz: c31a093250bca2a31d50c5d9f85dd2c80cb35cfaa4d48a24c96a471c3d218cf0f6cf2b1511074b0bd5c1349d738e49a0cd5f0d5ffeba1d98035958eb02c39fbb
7
- data.tar.gz: a548fb2f051c5173066e009539a17d768b353a52ddd66b43816b4d308b910d173b1264b525745621b18023a0111e9c2b25e4508668f406c4df1f82f6c0ec8801
6
+ metadata.gz: 0bf4b6de277203877b5b9d88d330458f6ba53bb0e968041b1f7148a06851a5b2b963b1b3febea3d17ea84ffb51ce4085fe96169e1615e10e7a81a1db50b61f38
7
+ data.tar.gz: 2fe44f74fc96870485075b7cd294d27aa13108eeb3ddbc48fe8aaeb1bd39fa58fdf20dc584362f4bbbea6f52d54510b78bb987cffdd551b9c19c03886847e64a
@@ -0,0 +1,9 @@
1
+ class AddTaskLockIndexOnResourceTypeAndTaskId < ActiveRecord::Migration[6.0]
2
+ def change
3
+ add_index :foreman_tasks_locks, [:task_id, :resource_type, :resource_id], name: 'index_tasks_locks_on_task_id_resource_type_and_resource_id'
4
+ # These indexes are not needed as they can be gained from partial index lookups
5
+ remove_index :foreman_tasks_locks, :task_id
6
+ remove_index :foreman_tasks_locks, :name
7
+ remove_index :foreman_tasks_locks, :resource_type
8
+ end
9
+ end
@@ -14,7 +14,7 @@ namespace :foreman_tasks do
14
14
  If TASK_SEARCH is set then AFTER, STATES can be set and it's used for cleanup. If TASK_SEARCH is not set then
15
15
  the cleanup respects the configuration file and setting AFTER or STATES will throw exception.
16
16
  DESC
17
- task :run => 'environment' do
17
+ task :run => ['environment', 'dynflow:client'] do
18
18
  options = {}
19
19
 
20
20
  options[:filter] = ENV['TASK_SEARCH'] if ENV['TASK_SEARCH']
@@ -38,7 +38,7 @@ namespace :foreman_tasks do
38
38
  end
39
39
 
40
40
  desc 'Show the current configuration for auto-cleanup'
41
- task :config => 'environment' do
41
+ task :config => ['environment', 'dynflow:client'] do
42
42
  if ForemanTasks::Cleaner.cleanup_settings[:after]
43
43
  puts _('The tasks will be deleted after %{after}') % { :after => ForemanTasks::Cleaner.cleanup_settings[:after] }
44
44
  else
@@ -0,0 +1,6 @@
1
+ namespace :dynflow do
2
+ task :client do
3
+ ::ForemanTasks.dynflow.config.remote = true
4
+ ::ForemanTasks.dynflow.initialize!
5
+ end
6
+ end
@@ -19,7 +19,7 @@ namespace :foreman_tasks do
19
19
  all unsuccessful tasks in the past 60 days. The default TASK_FORMAT is html
20
20
  which requires a tar.gz file extension.
21
21
  DESC
22
- task :export_tasks => :environment do
22
+ task :export_tasks => [:environment, 'dynflow:client'] do
23
23
  deprecated_options = { :tasks => 'TASK_SEARCH',
24
24
  :days => 'TASK_DAYS',
25
25
  :export => 'TASK_FILE' }
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-07 00:00:00.000000000 Z
11
+ date: 2020-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynflow
@@ -245,6 +245,7 @@ files:
245
245
  - db/migrate/20180927120509_add_user_id.foreman_tasks.rb
246
246
  - db/migrate/20181019135324_add_remote_task_operation.rb
247
247
  - db/migrate/20190318153925_add_task_state_updated_at.foreman_tasks.rb
248
+ - db/migrate/20200611090846_add_task_lock_index_on_resource_type_and_task_id.rb
248
249
  - db/seeds.d/20-foreman_tasks_permissions.rb
249
250
  - db/seeds.d/30-notification_blueprints.rb
250
251
  - db/seeds.d/60-dynflow_proxy_feature.rb
@@ -266,6 +267,7 @@ files:
266
267
  - lib/foreman_tasks/engine.rb
267
268
  - lib/foreman_tasks/task_error.rb
268
269
  - lib/foreman_tasks/tasks/cleanup.rake
270
+ - lib/foreman_tasks/tasks/dynflow.rake
269
271
  - lib/foreman_tasks/tasks/export_tasks.rake
270
272
  - lib/foreman_tasks/tasks/generate_task_actions.rake
271
273
  - lib/foreman_tasks/test_extensions.rb