pampa 2.0.25 → 2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pampa.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 766a4c8e58dcd60e3938ae32600b3715f696418c7f4f2d4cb15ea22fa8559213
|
4
|
+
data.tar.gz: 2a131d44bba1996839e5fc03a0a12148c6429d49b050a711c4bcc91a00fe34b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e8bc763b08173e152f9a7a6fdc3c75fa1aca6e2522cba7b919fa2b5c6f71653266fc7f2e29fbfc749a59af706bf3cb63624ef8ce4da903349ae7001c4c5aad1
|
7
|
+
data.tar.gz: d03a80fcd845fe760be93a42b720528cc518fd1380cee51dc1d1ab2439254d23ed2ef6c42acf4075b9290f513151486b28c90bf7c568731516a29394a1859db9
|
data/lib/pampa.rb
CHANGED
@@ -25,7 +25,7 @@ module BlackStack
|
|
25
25
|
|
26
26
|
def self.now()
|
27
27
|
tz = 'America/Argentina/Buenos_Aires' #DB["SELECT current_setting('TIMEZONE') AS tz"].first[:tz]
|
28
|
-
DB["SELECT current_timestamp
|
28
|
+
DB["SELECT current_timestamp at TIME ZONE '#{tz}' AS now"].first[:now]
|
29
29
|
end
|
30
30
|
|
31
31
|
# @@integrate_with_blackstack_deployer
|
@@ -245,7 +245,7 @@ module BlackStack
|
|
245
245
|
# - config: relative path of the configuration file. Example: '../config.rb'
|
246
246
|
# - worker: relative path of the worker.rb file. Example: '../worker.rb'
|
247
247
|
#
|
248
|
-
def self.relaunch()
|
248
|
+
def self.relaunch(n=10000)
|
249
249
|
# validate: the connection string is not nil
|
250
250
|
raise "The connection string is nil" if @@connection_string.nil?
|
251
251
|
# validate: the connection string is not empty
|
@@ -257,8 +257,8 @@ module BlackStack
|
|
257
257
|
# iterate the workers
|
258
258
|
BlackStack::Pampa.jobs.each { |job|
|
259
259
|
l.logs("job:#{job.name}... ")
|
260
|
-
l.logs("Gettting tasks to relaunch (max #{
|
261
|
-
tasks = job.relaunching(
|
260
|
+
l.logs("Gettting tasks to relaunch (max #{n})... ")
|
261
|
+
tasks = job.relaunching(n)
|
262
262
|
l.logf("done (#{tasks.size.to_s})")
|
263
263
|
|
264
264
|
tasks.each { |task|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pampa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|