Skip to content

Commit

Permalink
add more info. on task entry/exit log
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Oct 24, 2024
1 parent 74f31d1 commit 775e23f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/jogasaki/scheduler/flat_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ bool flat_task::execute(tateyama::task_scheduler::context& ctx) {
begin = clock::now();
}
VLOG_LP(log_trace) << "task begin " << *this << " job_id:" << utils::hex(req_context_->job()->id())
<< " kind:" << kind_ << " sticky:" << sticky_;
<< " kind:" << kind_ << " sticky:" << sticky_ << " worker:" << ctx.index()
<< " stolen:" << ctx.task_is_stolen();
bool ret = false;
switch(kind_) {
using kind = flat_task_kind;
Expand Down Expand Up @@ -175,7 +176,9 @@ bool flat_task::execute(tateyama::task_scheduler::context& ctx) {
}
}
VLOG_LP(log_trace) << "task end " << *this << " took(ns):" << took_ns
<< " job_id:" << utils::hex(req_context_->job()->id()) << " kind:" << kind_;
<< " job_id:" << utils::hex(req_context_->job()->id()) << " kind:" << kind_
<< " sticky:" << sticky_ << " worker:" << ctx.index() << " stolen:" << ctx.task_is_stolen();

return ret;
}

Expand Down

0 comments on commit 775e23f

Please sign in to comment.