Skip to content
Snippets Groups Projects
Commit e17653a3 authored by Trofinoff Stephen's avatar Trofinoff Stephen Committed by Morris Jette
Browse files

Add a few more fields to job_submit lua plugin

parent f269814a
No related branches found
No related tags found
No related merge requests found
...@@ -451,6 +451,17 @@ static int _get_job_req_field (lua_State *L) ...@@ -451,6 +451,17 @@ static int _get_job_req_field (lua_State *L)
lua_pushstring (L, job_desc->work_dir); lua_pushstring (L, job_desc->work_dir);
} else if (!strcmp(name, "wckey")) { } else if (!strcmp(name, "wckey")) {
lua_pushstring (L, job_desc->wckey); lua_pushstring (L, job_desc->wckey);
} else if (!strcmp(name, "ntasks_per_core")) {
lua_pushnumber (L, job_desc->ntasks_per_core);
} else if (!strcmp(name, "boards_per_node")) {
lua_pushnumber (L, job_desc->boards_per_node);
} else if (!strcmp(name, "ntasks_per_board")) {
lua_pushnumber (L, job_desc->ntasks_per_board);
} else if (!strcmp(name, "ntasks_per_socket")) {
lua_pushnumber (L, job_desc->ntasks_per_socket);
} else if (!strcmp(name, "sockets_per_board")) {
lua_pushnumber (L, job_desc->sockets_per_board);
} else { } else {
lua_pushnil (L); lua_pushnil (L);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment