Commit 967fd3b8 authored by Frank Winkler's avatar Frank Winkler
Browse files

Only log for specific user id.

parent bc7649a8
SLURM_ROOT_DIR = /usr
SLURM_INC_DIR = $(SLURM_ROOT_DIR)/include
SLURM_LIB_DIR = /usr/lib64/slurm
SLURM_BUILD = 20.02.7
SLURM_BUILD = 20.02.2
SLURM_BUILD_DIR = /root/rpmbuild/BUILD/slurm-$(SLURM_BUILD)
PLUGIN_TYPE = prep
......
......@@ -123,11 +123,14 @@ extern int prep_p_prolog_slurmctld(job_record_t *job_ptr, bool *async)
{
int rc = SLURM_SUCCESS;
/* use user id */
/* job_ptr->user_name does not work */
// if ( strcmp(job_ptr->user_name, "fwinkler") != 0 &&
// strcmp(job_ptr->user_name, "rotscher") != 0 )
// return rc;
if ( job_ptr->user_id != 1001 )
return rc;
slurm_info(PLUGIN_NAME "prep_p_prolog_slurmctld\n");
char *job_data = xmalloc(sizeof(char) * STRING_LEN);
job_data_prolog(job_ptr, &job_data);
......@@ -150,11 +153,14 @@ extern int prep_p_epilog_slurmctld(job_record_t *job_ptr, bool *async)
{
int rc = SLURM_SUCCESS;
/* use user id */
/* job_ptr->user_name does not work */
// if ( strcmp(job_ptr->user_name, "fwinkler") != 0 &&
// strcmp(job_ptr->user_name, "rotscher") != 0 )
// return rc;
if ( job_ptr->user_id != 1001 )
return rc;
slurm_info(PLUGIN_NAME "prep_p_epilog_slurmctld\n");
char *job_data = xmalloc(sizeof(char) * STRING_LEN);
job_data_epilog(job_ptr, &job_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment