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 +4 -4
- data/db/migrate/20200611090846_add_task_lock_index_on_resource_type_and_task_id.rb +9 -0
- data/lib/foreman_tasks/tasks/cleanup.rake +2 -2
- data/lib/foreman_tasks/tasks/dynflow.rake +6 -0
- data/lib/foreman_tasks/tasks/export_tasks.rake +1 -1
- data/lib/foreman_tasks/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88767e3fa6070985ad11cf3ebe2ffec115a849a35d68ba9822b799ada08f20fd
|
4
|
+
data.tar.gz: 9e839c4b8fcca99cba833f26950c784589477c7efa487953adf20622575e1e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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' }
|
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.
|
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-
|
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
|