Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Minor changes:
so a published result can be traced back to the code that produced it. Until
now `task_info.yaml` was a verbatim copy of `_viash.yaml`, whose `version` is
the revision (`build_main`) rather than a commit.
- `run_benchmark`: write the workflow launch time into `task_info.yaml` as
`timestamp`. The reporting side requires one and was falling back to guessing
it from the results path or a file modification time.

Bug fixes:
- `downstream`: normalise the simulated dataset the same way as the real one,
Expand Down
3 changes: 3 additions & 0 deletions src/workflows/run_benchmark/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ workflow run_wf {
if (workflow.commitId) {
task_info.commit = workflow.commitId
}
// the launch time -- workflow.complete is only known once the run is over
task_info.timestamp = workflow.start.toInstant()
.truncatedTo(java.time.temporal.ChronoUnit.SECONDS).toString()
def task_info_file = tempFile("task_info.yaml")
task_info_file.write(toYamlBlob(task_info))

Expand Down
Loading