Skip to content

Commit

Permalink
Merge branch 'master' into db-canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt authored Mar 14, 2024
2 parents a984c1b + 55ee8ff commit b8be4e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/runtime/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,15 @@ JAST JobReflection::to_simple_json() const {
json.add("endtime", endtime.as_int64());
json.add("wake_start", wake_start.as_int64());

std::stringstream tags_stream;
for (const auto &tag : tags) {
tags_stream << "{<br>"
<< " job: " << tag.job << ",<br>"
<< " uri: " << tag.uri << ",<br>"
<< " content: " << tag.content << "<br>},<br>";
}
json.add("tags", tags_stream.str());

return json;
}

Expand Down
1 change: 1 addition & 0 deletions tools/wake/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ int main(int argc, char **argv) {
!clo.job_ids.empty() || !clo.output_files.empty() || !clo.input_files.empty() ||
!clo.labels.empty() || !clo.tags.empty() || clo.last_use || clo.last_exe || clo.failed ||
clo.tagdag || clo.timeline || clo.taguri || clo.simple || clo.simple_timeline || clo.canceled;

// Arguments are forbidden with these options
bool noargs =
is_db_inspection || clo.init || clo.html || clo.global || clo.exports || clo.api || clo.exec;
Expand Down

0 comments on commit b8be4e2

Please sign in to comment.