Skip to content

Commit

Permalink
Add command to layerDetails (#1436)
Browse files Browse the repository at this point in the history
**Summarize your change.**
This adds the layer `command` attribute to the layer details in the
cuegui attribute widget.
  • Loading branch information
lithorus authored Jul 30, 2024
1 parent 85050da commit 4e35887
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.32
0.33
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,7 @@ public Layer mapRow(ResultSet rs, int rowNum) throws SQLException {
.setChunkSize(rs.getInt("int_chunk_size"))
.setDispatchOrder(rs.getInt("int_dispatch_order"))
.setName(SqlUtil.getString(rs,"str_name"))
.setCommand(SqlUtil.getString(rs,"str_cmd"))
.setRange(SqlUtil.getString(rs,"str_range"))
.setMinCores(Convert.coreUnitsToCores(rs.getInt("int_cores_min")))
.setMaxCores(Convert.coreUnitsToCores(rs.getInt("int_cores_max")))
Expand Down
3 changes: 2 additions & 1 deletion cuegui/cuegui/plugins/AttributesPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def dataSource(self, layer, preload):
"layer": layer.data.name,
"services": layer.data.services,
"type": str(layer.data.type),
"command": str(layer.data.command),
"range": layer.data.range,
"tags": layer.data.tags,
"threadable": str(layer.data.is_threadable),
Expand Down Expand Up @@ -279,7 +280,7 @@ def dataSource(self, layer, preload):
"Running frames": layer.data.layer_stats.running_frames,
"maxRss": int(layer.data.layer_stats.max_rss)
},
"__childOrder":["id","layer","services","type","range","tags",
"__childOrder":["id","layer","services","type","command","range","tags",
"threadable","minCores","minMemory","outputs",
"depends", "frames","resources"],
"depends": getDependsForm(preload["depends"]),
Expand Down
1 change: 1 addition & 0 deletions proto/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ message Layer {
int32 timeout_llu = 19;
float min_gpus = 20;
float max_gpus = 21;
string command = 22;
}

message LayerSeq {
Expand Down

0 comments on commit 4e35887

Please sign in to comment.