Skip to content

Commit

Permalink
BF: Reverted last commit for CS-344
Browse files Browse the repository at this point in the history
  • Loading branch information
ernst-bablick committed Jun 3, 2024
1 parent 0ec1994 commit a4cc806
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions source/common/execution_states.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ get_sstate_description(int sstate) {
{"entry is missing in password file", SSTATE_PASSWD_MISSING},
{"wrong password", SSTATE_PASSWD_WRONG},
{"communicating with Cluster Scheduler Helper Service", SSTATE_HELPER_SERVICE_ERROR},
{"before job in Cluster Scheduler Helper Service", SSTATE_HELPER_SERVICE_BEFORE_JOB},
{"before job in Cluster Scheduler Helper Service", SSTATE_HELPER_SERVICE_BEFORE_JOB},
{"checking configured daemons", SSTATE_CHECK_DAEMON_CONFIG},
{"qmaster enforced h_rt limit", SSTATE_QMASTER_ENFORCED_LIMIT},
{"execvp call failed, script or shell not found", SSTATE_EXEC_FAILED}
{"qmaster enforced h_rt limit", SSTATE_QMASTER_ENFORCED_LIMIT}
};

for (i = 0; i < sizeof(state_message) / sizeof(struct _state_message); i++) {
Expand Down
1 change: 0 additions & 1 deletion source/common/execution_states.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
#define SSTATE_CHECK_DAEMON_CONFIG 36
#define SSTATE_QMASTER_ENFORCED_LIMIT 37
#define SSTATE_ADD_GRP_SET_ERROR 38
#define SSTATE_EXEC_FAILED 39

#define MAX_SSTATE SSTATE_ADD_GRP_SET_ERROR

Expand Down
1 change: 0 additions & 1 deletion source/daemons/execd/reaper_execd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ static int clean_up_job(lListElem *jr, int failed, int shepherd_exit_status,
case SSTATE_PROLOG_FAILED:
case SSTATE_BEFORE_PESTART:
case SSTATE_PESTART_FAILED:
case SSTATE_EXEC_FAILED:
general_failure = GFSTATE_QUEUE;
lSetUlong(jr, JR_general_failure, general_failure);
job_related_adminmail(EXECD, jr, is_array, job_owner);
Expand Down
2 changes: 1 addition & 1 deletion source/daemons/shepherd/builtin_starter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ int use_starter_method /* If this flag is set the shellpath contains the

/* most of the problems here are related to the shell
i.e. -S /etc/passwd */
shepherd_state = SSTATE_EXEC_FAILED;
shepherd_state = SSTATE_NO_SHELL;
/* EXIT HERE IN CASE IF FAILURE */
shepherd_error(1, failed_str);
}
Expand Down
2 changes: 1 addition & 1 deletion source/libs/gdi/sge_gdi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ lList *sge_gdi(u_long32 target, u_long32 cmd, lList **lpp, lCondition *cp, lEnum

int sge_gdi_multi(lList **alpp, int mode, u_long32 target, u_long32 cmd, lList **lp, lCondition *cp, lEnumeration *enp,
state_gdi_multi *state, bool do_copy) {
DENTER(TOP_LAYER);
DENTER(GDI_LAYER);
int ret;

/*
Expand Down

0 comments on commit a4cc806

Please sign in to comment.