Skip to content

Commit

Permalink
This should work
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Sep 15, 2023
1 parent c8e7dab commit 123e1bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/TreeValProject.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.time.OffsetDateTime

class TreeValProject {
//
// Generates a small summary containing context for the input files
Expand All @@ -7,13 +9,15 @@ class TreeValProject {

public static void summary(workflow, params, metrics, log) {

def date_completed = OffsetDateTime.now()

def input_data = [:]
input_data['version'] = NfcoreTemplate.version( workflow )
input_data['runName'] = workflow.runName
input_data['session_id'] = workflow.sessionId
input_data['duration'] = 'CANNOT BE CALCULATED'
input_data['duration'] = Duration.between( workflow.start, date_completed )
input_data['DateStarted'] = workflow.start
input_data['DateCompleted'] = new Date().format("yyyy-MM-dd HH:mm:ss.SSSZ")
input_data['DateCompleted'] = date_completed
input_data['entry'] = params.entry

input_data['input_yaml'] = params.input
Expand Down

0 comments on commit 123e1bc

Please sign in to comment.