Nope, Schedd.spool() wants a list of jobs.
In [28]: submit_results = schedd.submit(htcondor_job, spool=True)
In [29]: schedd.spool(submit_results)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In [29], line 1
----> 1 schedd.spool(submit_results)
File /usr/lib64/python3.9/site-packages/htcondor/_lock.py:70, in add_lock.<locals>.wrapper(*args, **kwargs)
67 try:
68 acquired = LOCK.acquire()
---> 70 rv = func(*args, **kwargs)
72 # if the function returned a context manager,
73 # create a LockedContext to manage the lock
74 is_cm = is_context_manager(rv)
TypeError: object of type 'SubmitResult' has no len()
|