[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] job is idle when I send via SOAP



Hello all, Im trying to do an easy condor library for python through SOAP. But I have a problem, when I send a job via SOAP, the job is not asigned to any machine and it stands idle, i try to send the same job with condor_submit and it works perfectly. I will post the job sumited by SOAP, I think that maybe is a field that is wrong or something.

  classAd =
      (ClassAdStruct){
         item[] =
            (ClassAdStructAttr){
               name = "MyType"
               type = "STRING-ATTR"
               value = "Job"
            },
            (ClassAdStructAttr){
               name = "TargetType"
               type = "STRING-ATTR"
               value = "Machine"
            },
            (ClassAdStructAttr){
               name = "ServerTime"
               type = "INTEGER-ATTR"
               value = "1330254136"
            },
            (ClassAdStructAttr){
               name = "GlobalJobId"
               type = "STRING-ATTR"
               value = "c-head.micluster.com#248.0#1330254046"
            },
            (ClassAdStructAttr){
               name = "TransferInput"
               type = "STRING-ATTR"
               value = None
            },
            (ClassAdStructAttr){
               name = "Owner"
               type = "STRING-ATTR"
               value = "user1"
            },
            (ClassAdStructAttr){
               name = "JobUniverse"
               type = "INTEGER-ATTR"
               value = "5"
            },
            (ClassAdStructAttr){
               name = "Cmd"
               type = "STRING-ATTR"
value = "/home/usuario/Escritorio/pruebas_SOAP/ejemplo3/bucle"
            },
            (ClassAdStructAttr){
               name = "QDate"
               type = "INTEGER-ATTR"
               value = "1330254046"
            },
            (ClassAdStructAttr){
               name = "CompletionDate"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "RemoteWallClockTime"
               type = "FLOAT-ATTR"
               value = "0.000000"
            },
            (ClassAdStructAttr){
               name = "LocalUserCpu"
               type = "FLOAT-ATTR"
               value = "0.000000"
            },
            (ClassAdStructAttr){
               name = "LocalSysCpu"
               type = "FLOAT-ATTR"
               value = "0.000000"
            },
            (ClassAdStructAttr){
               name = "RemoteUserCpu"
               type = "FLOAT-ATTR"
               value = "0.000000"
            },
            (ClassAdStructAttr){
               name = "RemoteSysCpu"
               type = "FLOAT-ATTR"
               value = "0.000000"
            },
            (ClassAdStructAttr){
               name = "CoreSize"
               type = "INTEGER-ATTR"
               value = "-1"
            },
            (ClassAdStructAttr){
               name = "ExitStatus"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "ExitBySignal"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "NumCkpts_RAW"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "NumCkpts"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "NumJobStarts"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "NumRestarts"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "NumSystemHolds"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "CommittedTime"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "TotalSuspensions"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "LastSuspensionTime"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "CumulativeSuspensionTime"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "RootDir"
               type = "STRING-ATTR"
               value = "/"
            },
            (ClassAdStructAttr){
               name = "MinHosts"
               type = "INTEGER-ATTR"
               value = "1"
            },
            (ClassAdStructAttr){
               name = "MaxHosts"
               type = "INTEGER-ATTR"
               value = "1"
            },
            (ClassAdStructAttr){
               name = "CurrentHosts"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "WantRemoteSyscalls"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "WantCheckpoint"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "WantRemoteIO"
               type = "BOOLEAN-ATTR"
               value = "TRUE"
            },
            (ClassAdStructAttr){
               name = "LastJobStatus"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "JobStatus"
               type = "INTEGER-ATTR"
               value = "1"
            },
            (ClassAdStructAttr){
               name = "EnteredCurrentStatus"
               type = "INTEGER-ATTR"
               value = "1330254046"
            },
            (ClassAdStructAttr){
               name = "JobPrio"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "User"
               type = "STRING-ATTR"
               value = "user1@xxxxxxxxxxxxx"
            },
            (ClassAdStructAttr){
               name = "NiceUser"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "JobNotification"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "KillSig"
               type = "STRING-ATTR"
               value = "SIGTERM"
            },
            (ClassAdStructAttr){
               name = "ImageSize_RAW"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "ImageSize"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "In"
               type = "STRING-ATTR"
               value = "NULL"
            },
            (ClassAdStructAttr){
               name = "Out"
               type = "STRING-ATTR"
value = "/home/condor/hosts/c-head/spool/cluster248.proc0.subproc0/bucle.out"
            },
            (ClassAdStructAttr){
               name = "Err"
               type = "STRING-ATTR"
value = "/home/condor/hosts/c-head/spool/cluster248.proc0.subproc0/bucle.err"
            },
            (ClassAdStructAttr){
               name = "BufferSize"
               type = "INTEGER-ATTR"
               value = "524288"
            },
            (ClassAdStructAttr){
               name = "BufferBlockSize"
               type = "INTEGER-ATTR"
               value = "32768"
            },
            (ClassAdStructAttr){
               name = "ShouldTransferFiles"
               type = "STRING-ATTR"
               value = "NO"
            },
            (ClassAdStructAttr){
               name = "TransferFiles"
               type = "STRING-ATTR"
               value = "ONEXIT"
            },
            (ClassAdStructAttr){
               name = "WhenToTransferOutput"
               type = "STRING-ATTR"
               value = "ON_EXIT"
            },
            (ClassAdStructAttr){
               name = "PeriodicHold"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "PeriodicRemove"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "PeriodicRelease"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "OnExitHold"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "OnExitRemove"
               type = "BOOLEAN-ATTR"
               value = "TRUE"
            },
            (ClassAdStructAttr){
               name = "CondorVersion"
               type = "STRING-ATTR"
value = "$CondorVersion: 7.4.4 Oct 14 2010 BuildID: 279383 $"
            },
            (ClassAdStructAttr){
               name = "CondorPlatform"
               type = "STRING-ATTR"
               value = "$CondorPlatform: I386-LINUX_RHEL5 $"
            },
            (ClassAdStructAttr){
               name = "ClusterId"
               type = "INTEGER-ATTR"
               value = "248"
            },
            (ClassAdStructAttr){
               name = "ProcId"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "Requirements"
               type = "EXPRESSION-ATTR"
               value = "(Arch == "x86_64" && OpSys == "LINUX")"
            },
            (ClassAdStructAttr){
               name = "StageInStart"
               type = "INTEGER-ATTR"
               value = "1"
            },
            (ClassAdStructAttr){
               name = "StageInFinish"
               type = "INTEGER-ATTR"
               value = "1"
            },
            (ClassAdStructAttr){
               name = "FilesRetrieved"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "LeaveJobInQueue"
               type = "BOOLEAN-ATTR"
               value = "FALSE"
            },
            (ClassAdStructAttr){
               name = "Arguments"
               type = "STRING-ATTR"
               value = None
            },
            (ClassAdStructAttr){
               name = "Iwd"
               type = "STRING-ATTR"
value = "/home/condor/hosts/c-head/spool/cluster248.proc0.subproc0"
            },
            (ClassAdStructAttr){
               name = "AutoClusterId"
               type = "INTEGER-ATTR"
               value = "0"
            },
            (ClassAdStructAttr){
               name = "AutoClusterAttrs"
               type = "STRING-ATTR"
value = "JobUniverse,LastCheckpointPlatform,NumCkpts,Requirements,NiceUser,ConcurrencyLimits"
            },
      }
 }

In the console condor_q:
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD
 248.0   user1           2/26 12:00   0+00:00:00 I  0   0.0  bucle


In my code, I change "Out", "Err","LeaveJobInQueue"(FALSE),"In"(NULL) and "ShouldTransferFiles"(NO) If someone wants the code tell me, thanks for all.