serial_scheduler 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serial_scheduler/version.rb +1 -1
- data/lib/serial_scheduler.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3dd2528969ba8f347f24e21bcf8eeaacd761169ffd3933ee84dbe2e7fef537
|
4
|
+
data.tar.gz: 6a0e3ab1df2c063218b9d4c5ff4bbe505dc1e1502a58c5bdbe150e6333980354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7281f98b6133e804d84c8b6e7c86c7ab131383c128319d232cc71e09f5fac7a07acb3c62d20a0ea61d241a61be33fcc67c1adb2ce82590fed84579359b16e14b
|
7
|
+
data.tar.gz: 0f7cfa6194f634d9797b183bd73b841951c475ccc40185d5dac7df18704a5a7f192a65e12c8e7b0034282ea6ba1aca95a8c7b6141af61db492de2249cd6599d9
|
data/lib/serial_scheduler.rb
CHANGED
@@ -66,7 +66,7 @@ class SerialScheduler
|
|
66
66
|
wait = [earliest.next - now, 0].max # do not wait when overdue
|
67
67
|
|
68
68
|
if wait > 0
|
69
|
-
@logger.info message: "Waiting to start job", job: earliest.name,
|
69
|
+
@logger.info message: "Waiting to start job", job: earliest.name, in: wait, at: Time.at(now).to_s
|
70
70
|
wait.times do
|
71
71
|
break if @stopped
|
72
72
|
|