|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
diff --git a/src/condor_c-gahp/schedd_client.cpp b/src/condor_c-gahp/schedd_client.cpp
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
index e3acc44..ba96490 100644
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
--- a/src/condor_c-gahp/schedd_client.cpp
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+++ b/src/condor_c-gahp/schedd_client.cpp
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -173,7 +173,10 @@ doContactSchedd()
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
}
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
}
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
-
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ int interaction_time = param_integer("CGAHP_SCHEDD_INTERACTION_TIME", 5);
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ time_t starttime = time(NULL);
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ bool rerun_immediately = false;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
SchedDRequest::schedd_command_type commands [] = {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
SchedDRequest::SDC_REMOVE_JOB,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
SchedDRequest::SDC_HOLD_JOB,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -188,7 +191,11 @@ doContactSchedd()
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
int i=0;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
while (i<3) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
-
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
StringList id_list;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
SimpleList <SchedDRequest*> this_batch;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -361,6 +368,12 @@ doContactSchedd()
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
SimpleList <SchedDRequest*> stage_in_batch;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
do {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
stage_in_batch.Clear();
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
command_queue.Rewind();
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -507,6 +520,11 @@ doContactSchedd()
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (current_command->command != SchedDRequest::SDC_JOB_REFRESH_PROXY)
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
continue;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
time_t expiration_time = GetDesiredDelegatedJobCredentialExpiration(current_command->classad);
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
time_t result_expiration_time = 0;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -591,7 +609,12 @@ doContactSchedd()
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (qmgr_connection == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
goto update_report_result;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
-
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
error = FALSE;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
errno = 0;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
BeginTransaction();
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -631,7 +654,8 @@ doContactSchedd()
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if( SetAttribute(current_command->cluster_id,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
current_command->proc_id,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
lhstr,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
- rhstr) == -1 ) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rhstr,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ SetAttribute_NoAck) == -1 ) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if ( errno == ETIMEDOUT ) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
failure_line_num = __LINE__;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
failure_errno = errno;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -698,6 +722,11 @@ update_report_result:
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (current_command->command != SchedDRequest::SDC_UPDATE_LEASE)
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
continue;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
std::string success_job_ids="";
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (qmgr_connection == NULL) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
sprintf( error_msg, "Error connecting to schedd %s", ScheddAddr );
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -803,6 +832,11 @@ update_report_result:
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (current_command->command != SchedDRequest::SDC_SUBMIT_JOB)
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
continue;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
int ClusterId = -1;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
int ProcId = -1;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -929,7 +963,8 @@ update_report_result:
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
error = TRUE;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
} else if( SetAttribute (ClusterId, ProcId,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
lhstr,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
- rhstr) == -1 ) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rhstr,
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ SetAttribute_NoAck) == -1 ) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if ( errno == ETIMEDOUT ) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
failure_line_num = __LINE__;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
failure_errno = errno;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -993,6 +1028,11 @@ submit_report_result:
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (current_command->command != SchedDRequest::SDC_STATUS_CONSTRAINED)
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
continue;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (time(NULL) - starttime > interaction_time) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ rerun_immediately = true;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ break;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
if (qmgr_connection != NULL) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
SimpleList <MyString *> matching_ads;
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
@@ -1165,9 +1205,14 @@ submit_report_result:
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
}
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
}
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ dprintf (D_FULLDEBUG, "Schedd interaction took %ld seconds.\n", time(NULL)-starttime);
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ if (rerun_immediately) {
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ dprintf (D_FULLDEBUG, "Schedd interaction time hit limit; will retry immediately.\n");
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
// Come back soon..
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
// QUESTION: Should this always be a fixed time period?
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
- daemonCore->Reset_Timer( contactScheddTid, contact_schedd_interval );
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
+ daemonCore->Reset_Timer( contactScheddTid, rerun_immediately ? 1 : contact_schedd_interval );
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
}
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|
|
![](https://seccdn.libravatar.org/avatar/7953a9093903b1598d828463f294c39ff77c20e7530429a55b48be9a3c3c0f35?s=16&d=retro) |
b3fe293 |
|