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

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



Thanks for your response Tim, I have found something I think is interesting:
CoreSize = -1
When in a job submited by condor_submit have CondorSize=0.

And other intersting thing is that I changed:
ShouldTransferFiles = "NO"
TransferFiles = "NEVER"

when the default was "YES" and "ONEXIT", I dont know why it is set by default but I think that their values must be "NO" and "EVER" like a condor_submit job, because in the api you selected the cmd.


If someone could tell me why the job can't be assigned to a machine, I will be very grateful, I append the capture with condor_q long.

TransferInput = ""
Owner = "user1"
JobUniverse = 5
Cmd = "/home/usuario/Escritorio/pruebas_SOAP/ejemplo3/bucle"
QDate = 1330537112
CompletionDate = 0
RemoteWallClockTime = 0.000000
LocalUserCpu = 0.000000
LocalSysCpu = 0.000000
RemoteUserCpu = 0.000000
RemoteSysCpu = 0.000000
CoreSize = -1
ExitStatus = 0
ExitBySignal = FALSE
NumCkpts_RAW = 0
NumCkpts = 0
NumJobStarts = 0
NumRestarts = 0
NumSystemHolds = 0
CommittedTime = 0
TotalSuspensions = 0
LastSuspensionTime = 0
CumulativeSuspensionTime = 0
RootDir = "/"
MinHosts = 1
MaxHosts = 1
CurrentHosts = 0
WantRemoteSyscalls = FALSE
WantCheckpoint = FALSE
WantRemoteIO = TRUE
LastJobStatus = 0
JobStatus = 1
EnteredCurrentStatus = 1330537112
JobPrio = 0
User = "user1@xxxxxxxxxxxxx"
NiceUser = FALSE
JobNotification = 0
KillSig = "SIGTERM"
ImageSize_RAW = 0
ImageSize = 0
In = "dev/null"
Out = "/home/condor/hosts/c-head/spool/cluster251.proc0.subproc0/bucle.out"
Err = "/home/condor/hosts/c-head/spool/cluster251.proc0.subproc0/bucle.err"
BufferSize = 524288
BufferBlockSize = 32768
ShouldTransferFiles = "NO"
TransferFiles = "NEVER"
WhenToTransferOutput = "ON_EXIT"
PeriodicHold = FALSE
PeriodicRemove = FALSE
PeriodicRelease = FALSE
OnExitHold = FALSE
OnExitRemove = TRUE
CondorVersion = "$CondorVersion: 7.4.4 Oct 14 2010 BuildID: 279383 $"
CondorPlatform = "$CondorPlatform: I386-LINUX_RHEL5 $"
ClusterId = 251
ProcId = 0
Requirements = (Arch == "INTEL") && (OpSys == "LINUX") && ((CkptArch == Arch) || (CkptArch =?= UNDEFINED)) && ((CkptOpSys == OpSys) || (CkptOpSys =?= UNDEFINED)) && (Disk >= DiskUsage) && ((Memory * 1024) >= ImageSize) && ((RequestMemory * 1024) >= ImageSize)
StageInStart = 1
StageInFinish = 1
FilesRetrieved = FALSE
LeaveJobInQueue = FALSE
Arguments = ""
Iwd = "/home/condor/hosts/c-head/spool/cluster251.proc0.subproc0"
WantMatchDiagnostics = TRUE
LastRejMatchReason = "no match found"
LastRejMatchTime = 1330537134
ServerTime = 1330537135



El 27/02/2012 15:43, Tim St Clair escribió:
I've found the easiest way to diagnose api differences is to run `condor_q -long<cluster.proc>` and then diff the classads.

Hope this helps,
Tim

----- Original Message -----
From: "Fernando"<tato469@xxxxxxxxx>
To: "Condor-Users Mail List"<condor-users@xxxxxxxxxxx>
Sent: Sunday, February 26, 2012 5:08:24 AM
Subject: [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.
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message tocondor-users-request@xxxxxxxxxxx
with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message tocondor-users-request@xxxxxxxxxxx  with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/