Skip to content

Commit

Permalink
mxqd: Remove job startup chatter
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Aug 23, 2021
1 parent 6bdd79d commit 4a0b7c9
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,6 @@ unsigned long start_job(struct mxq_group_list *glist)
if (!res) {
return 0;
}
mx_log_info(" job=%s(%d):%lu:%lu :: new job loaded.",
group->user_name, group->user_uid, group->group_id, job->job_id);

if (group->job_tmpdir_size > 0) {
mx_mysql_disconnect(server->mysql);
Expand Down Expand Up @@ -1361,8 +1359,6 @@ unsigned long start_job(struct mxq_group_list *glist)
mx_free_null(job->host_cpu_set_str);
job->host_cpu_set_str = mx_cpuset_to_str(&job->host_cpu_set);

mx_log_info("job assigned cpus: [%s]", job->host_cpu_set_str);

mx_mysql_disconnect(server->mysql);

pid = fork();
Expand All @@ -1374,14 +1370,6 @@ unsigned long start_job(struct mxq_group_list *glist)
} else if (pid == 0) {
job->host_pid = getpid();

mx_log_info(" job=%s(%d):%lu:%lu host_pid=%d pgrp=%d :: new child process forked.",
group->user_name,
group->user_uid,
group->group_id,
job->job_id,
job->host_pid,
getpgrp());

mx_log_debug("starting reaper process.");
mx_mysql_finish(&server->mysql);

Expand Down Expand Up @@ -1416,8 +1404,8 @@ unsigned long start_job(struct mxq_group_list *glist)
if (res < 0)
mx_log_err("start_job: failed to update daemon instance statistics: %m");

mx_log_info(" job=%s(%d):%lu:%lu :: added running job to watch queue.",
group->user_name, group->user_uid, group->group_id, job->job_id);
mx_log_info(" job=%s(%d):%lu:%lu :: started. pid=%d",
group->user_name, group->user_uid, group->group_id, job->job_id, pid);

return 1;
}
Expand Down

0 comments on commit 4a0b7c9

Please sign in to comment.