@@ -401,20 +401,24 @@ def synchronize(jobIds, timeout=-1, dispose=False):
401401 data record, which includes a record of the job's consumption of
402402 system resources during its execution and other statistical
403403 information. If set to True, the DRM will dispose of the job's
404- data record at the end of the synchroniize () call. If set to
404+ data record at the end of the synchronize () call. If set to
405405 False, the data record will be left for future access via the
406- wait() method.
406+ wait() method. It is the responsibility of the application to
407+ make sure that either `synchronize()` or `wait()`is called for
408+ every job. Not doing so creates a memory leak. Note that calling
409+ synchronize() with dispose set to true flushes all accounting
410+ information for all jobs in the list.
407411
408412 To avoid thread race conditions in multithreaded applications, the
409413 DRMAA implementation user should explicitly synchronize this call with
410414 any other job submission calls or control calls that may change the
411415 number of remote jobs.
412416
413- If the call exits before the
414- timeout has elapsed, all the jobs have been waited on or there was an
415- interrupt. If the invocation exits on timeout, an ExitTimeoutException
416- is thrown. The caller should check system time before and after this
417- call in order to be sure of how much time has passed.
417+ If the call exits before the timeout has elapsed, all the jobs have
418+ been waited on or there was an interrupt. If the invocation exits on
419+ timeout, an ExitTimeoutException is thrown. The caller should check
420+ system time before and after this call in order to be sure of how much
421+ time has passed.
418422 """
419423 if dispose :
420424 d = 1
0 commit comments