Skip to content

Commit a6135f6

Browse files
committed
resource: add a log message on expiration update
Problem: It may be useful to log when an instance expiration update occurs, but the resource module does not do that. Add a log message on expiration update.
1 parent 2208821 commit a6135f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

resource/modules/resource_match.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,10 @@ static void update_resource (flux_future_t *f, void *arg)
12591259
*/
12601260
ctx->db->metadata.graph_duration.graph_end =
12611261
std::chrono::system_clock::from_time_t ((time_t) expiration);
1262+
flux_log (ctx->h,
1263+
LOG_INFO,
1264+
"resource expiration updated to %.2f",
1265+
expiration);
12621266
}
12631267
for (auto &kv : ctx->notify_msgs) {
12641268
if ( (rc += flux_respond (ctx->h, kv.second->get_msg (), NULL)) < 0) {

0 commit comments

Comments
 (0)