arvados-cli 0.1.20140911150141 → 0.1.20140912094334
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 +4 -4
- data/bin/arv-run-pipeline-instance +10 -1
- data/bin/crunch-job +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f450bcadc56008219090701049a17b5190f3f2d
|
4
|
+
data.tar.gz: 1c07a8e7ff91d4bfdf05d56f0de736ee4f7d0272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0021ee1bb302b18d8740dc1c0c8515e427f5d968473cdd65ef6bbe5b704bc5a2a9cb7106cc69c205b6fdea71c71dade1fdcf0c568a072ad6b10661e9889677d
|
7
|
+
data.tar.gz: 3f216f4e56093890fd2124fc1ca83580a73b7bb410175dc39fb9fcb7360eec52ef3c5b6e384837848bf99e56dd77f0a7a51dcecfda208355b59cf36d981c3b9d
|
@@ -495,6 +495,10 @@ class WhRunPipelineInstance
|
|
495
495
|
moretodo = true
|
496
496
|
interrupted = false
|
497
497
|
|
498
|
+
if @instance[:started_at].nil?
|
499
|
+
@instance[:started_at] = Time.now
|
500
|
+
end
|
501
|
+
|
498
502
|
job_creation_failed = 0
|
499
503
|
while moretodo
|
500
504
|
moretodo = false
|
@@ -598,7 +602,7 @@ class WhRunPipelineInstance
|
|
598
602
|
owner_uuid: owner_uuid,
|
599
603
|
name: name,
|
600
604
|
portable_data_hash: collections.first[:portable_data_hash],
|
601
|
-
manifest_text: collections.first[:manifest_text]
|
605
|
+
manifest_text: collections.first[:manifest_text]
|
602
606
|
}
|
603
607
|
debuglog "Creating collection #{newcollection}", 0
|
604
608
|
newcollection_actual = $arv.collection.create collection: newcollection, ensure_unique_name: true
|
@@ -679,6 +683,10 @@ class WhRunPipelineInstance
|
|
679
683
|
end
|
680
684
|
end
|
681
685
|
|
686
|
+
if @instance[:finished_at].nil? and ['Complete', 'Failed'].include? @instance[:state]
|
687
|
+
@instance[:finished_at] = Time.now
|
688
|
+
end
|
689
|
+
|
682
690
|
debuglog "pipeline instance state is #{@instance[:state]}"
|
683
691
|
|
684
692
|
# set components_summary
|
@@ -742,6 +750,7 @@ class WhRunPipelineInstance
|
|
742
750
|
if ["New", "Ready", "RunningOnClient",
|
743
751
|
"RunningOnServer"].include?(@instance[:state])
|
744
752
|
@instance[:state] = "Failed"
|
753
|
+
@instance[:finished_at] = Time.now
|
745
754
|
@instance.save
|
746
755
|
end
|
747
756
|
@instance.log_stderr(msg)
|
data/bin/crunch-job
CHANGED
@@ -74,6 +74,7 @@ behavior (e.g., cancel job if cancelled_at becomes non-nil).
|
|
74
74
|
|
75
75
|
use strict;
|
76
76
|
use POSIX ':sys_wait_h';
|
77
|
+
use POSIX qw(strftime);
|
77
78
|
use Fcntl qw(F_GETFL F_SETFL O_NONBLOCK);
|
78
79
|
use Arvados;
|
79
80
|
use Digest::MD5 qw(md5_hex);
|
@@ -729,6 +730,9 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++)
|
|
729
730
|
delete $Jobstep->{stderr};
|
730
731
|
delete $Jobstep->{finishtime};
|
731
732
|
|
733
|
+
$Jobstep->{'arvados_task'}->{started_at} = strftime "%Y-%m-%dT%H:%M:%SZ", gmtime($Jobstep->{starttime});
|
734
|
+
$Jobstep->{'arvados_task'}->save;
|
735
|
+
|
732
736
|
splice @jobstep_todo, $todo_ptr, 1;
|
733
737
|
--$todo_ptr;
|
734
738
|
|
@@ -979,6 +983,8 @@ sub reapchildren
|
|
979
983
|
}
|
980
984
|
$Jobstep->{exitcode} = $childstatus;
|
981
985
|
$Jobstep->{finishtime} = time;
|
986
|
+
$Jobstep->{'arvados_task'}->{finished_at} = strftime "%Y-%m-%dT%H:%M:%SZ", gmtime($Jobstep->{finishtime});
|
987
|
+
$Jobstep->{'arvados_task'}->save;
|
982
988
|
process_stderr ($jobstepid, $task_success);
|
983
989
|
Log ($jobstepid, "output " . $Jobstep->{'arvados_task'}->{output});
|
984
990
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvados-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20140912094334
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arvados
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
- - "<"
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: 1.0.0
|
169
|
-
description: This is the Arvados SDK CLI gem, git revision
|
169
|
+
description: This is the Arvados SDK CLI gem, git revision ac594f16176901b7692be354045226e093b14218
|
170
170
|
email: gem-dev@curoverse.com
|
171
171
|
executables:
|
172
172
|
- arv
|