scout-gear 10.8.1 → 10.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a16e6fadbdab77f5dd56efff644adb5b79c7765642d87cee21f297eb4e783bee
4
- data.tar.gz: 2d4e225ec569e3fc8f569835b865effc6b3428e23b6feba3d4f9e8d092cb8a13
3
+ metadata.gz: aa23ee1be6e784b3875d08336b9c093f137b5ff75e48e487e15b6f5fc23de3c6
4
+ data.tar.gz: 4527449eb1764d3c1de6a93b94ff6ddc178a3d1968ed6b530a4cda4456c3f012
5
5
  SHA512:
6
- metadata.gz: 3103bc1c224105e7a5d5ac74181a62c6457d6b38cb4f59db2615be3962cef24777f25918977d738c02903b0b831606991c1015b2a7fa77fb03def9fce1b29cc7
7
- data.tar.gz: a09e7bf564fc5e4711bee14df56b7e8cd108b52cd9f02318d255964b58a9bc7585829a411629733c9cdd78060ac8d9b932491924d8227c03540fe93f55d04ccf
6
+ metadata.gz: cd4933a3f9605d84024fe3f32b86f0103d6bc1a41941d1c258541b48cb1559937982130706bda7702d45246a79ab628360c9fab83fb4a97ac1141082c979ff7c
7
+ data.tar.gz: 627c8fb68070b9284c60ff32c70bf6bfaf8951d4569ce2c67bd0fda89eab18366c8e5865a94f5dc0e90f2ad7930a52416ea4dd02c6eb76bc2a777e6267dd9d66
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.8.1
1
+ 10.8.3
@@ -191,6 +191,7 @@ module Workflow
191
191
  def process(rules, jobs = nil)
192
192
  jobs, rules = rules, {} if jobs.nil?
193
193
  jobs = [jobs] if Step === jobs
194
+ failed_jobs = []
194
195
  begin
195
196
 
196
197
  workload = Orchestrator.workload(jobs)
@@ -199,7 +200,6 @@ module Workflow
199
200
  all_jobs.each{|job| job.clean unless (job.done? && job.updated?) || (job.error? && ! job.recoverable_error?) }
200
201
 
201
202
  top_level_jobs = jobs.collect{|job| job.path }
202
- failed_jobs = []
203
203
  while workload.any?
204
204
 
205
205
  candidates = resources_used.keys + Orchestrator.candidates(workload, rules)
data/scout-gear.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: scout-gear 10.8.1 ruby lib
5
+ # stub: scout-gear 10.8.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scout-gear".freeze
9
- s.version = "10.8.1".freeze
9
+ s.version = "10.8.3".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Miguel Vazquez".freeze]
14
- s.date = "2025-06-12"
14
+ s.date = "2025-06-13"
15
15
  s.description = "Scout gear: workflow, TSVs, persistence, entities, associations, and knowledge_bases.".freeze
16
16
  s.email = "mikisvaz@gmail.com".freeze
17
17
  s.executables = ["scout".freeze]
data/scout_commands/glob CHANGED
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'scout-gear'
4
+
5
+ $0 = "scout #{$previous_commands.any? ? $previous_commands*" " + " " : "" }#{ File.basename(__FILE__) }" if $previous_commands
6
+
7
+ options = SOPT.setup <<EOF
8
+
9
+ Find files with glob
10
+
11
+ $ #{$0} [<options>] (<resource> <path>|<path>)
12
+
13
+ -h--help Print this help
14
+ -r--requires* Files to require; 'all' for all in Scout.etc.requires
15
+ -lw--load_workflow* Files to require; 'all' for all in Scout.etc.requires
16
+ -w--where* Where to look for the path
17
+ EOF
18
+ if options[:help]
19
+ if defined? scout_usage
20
+ scout_usage
21
+ else
22
+ puts SOPT.doc
23
+ end
24
+ exit 0
25
+ end
26
+
27
+ resource, path = ARGV
28
+ path, resource = resource, nil if path.nil?
29
+
30
+ raise MissingParameterException.new(:path) if path.nil?
31
+
32
+ case options[:workflows]
33
+ when nil, false, "false", "none"
34
+ when "all"
35
+ Scout.etc.workflows.list.each do |workflow|
36
+ Workflow.require_workflow file
37
+ end if Scout.etc.workflows.exists?
38
+ else
39
+ options[:workflows].split(/[ ,;|]/).each do |workflow|
40
+ Workflow.require_workflow workflow
41
+ end
42
+ end
43
+
44
+ case options[:requires]
45
+ when nil, false, "false", "none"
46
+ when "all"
47
+ Scout.etc.requires.list.each do |file|
48
+ require file
49
+ end if Scout.etc.requires.exists?
50
+ else
51
+ options[:requires].split(/[ ,;|]/).each do |file|
52
+ require file
53
+ end
54
+ end
55
+
56
+ location = nil
57
+ where = options[:where]
58
+ all = options[:all]
59
+
60
+ begin
61
+ resource = Workflow.require_workflow resource
62
+ rescue
63
+ begin
64
+ resource = Kernel.const_get(resource)
65
+ rescue
66
+ raise "Resource not found: #{ resource }"
67
+ end
68
+ end if resource
69
+
70
+ path = (resource || Scout)[path.dup]
71
+
72
+ if where.nil? || where == 'all' || path.path_maps.include?(where.to_sym)
73
+ case where
74
+ when nil
75
+ location = path.glob
76
+ when 'all'
77
+ location = path.glob_all
78
+ else
79
+ location = path.find(where).glob
80
+ end
81
+
82
+ if Array === location
83
+ puts location * "\n"
84
+ else
85
+ location = nil if ! Open.exists?(location)
86
+ puts location
87
+ end
88
+ else
89
+ raise ParameterException, "Where '#{where}' not identified. Try scout-camp if looking for a remote file"
90
+ end
@@ -18,7 +18,7 @@ $ #{$0} [<options>] <workflow> <task>
18
18
  -h--help Print this help
19
19
  --nostream Disable job streaming
20
20
  --update Update jobs with newer dependencies
21
- --deploy* Deploy mode: serial, local, or SLURM (default 'serial')
21
+ --deploy* Deploy mode: serial, local, queue, or SLURM (default 'serial')
22
22
  --fork Fork and return path
23
23
  --load_inputs* Directory or file with inputs files to load
24
24
  --save_inputs* Directory or tar.gz file path to store inputs
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout-gear
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.8.1
4
+ version: 10.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-12 00:00:00.000000000 Z
10
+ date: 2025-06-13 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: scout-essentials