Skip to content

Commit

Permalink
Fix typo in job.py docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfeil committed Jun 8, 2016
1 parent 0254607 commit 9ae4eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toil/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -2244,12 +2244,12 @@ def _serialiseJob(self, jobStore, jobsToJobWrappers, rootJobWrapper):
# method.
with jobStore.writeFileStream(rootJobWrapper.jobStoreID) as (fileHandle, fileStoreID):
cPickle.dump(self, fileHandle, cPickle.HIGHEST_PROTOCOL)
# Note that getUserScript() may have beeen overridden. This is intended. If we used
# Note that getUserScript() may have been overridden. This is intended. If we used
# self.userModule directly, we'd be getting a reference to job.py if the job was
# specified as a function (as opposed to a class) since that is where FunctionWrappingJob
# is defined. What we really want is the module that was loaded as __main__,
# and FunctionWrappingJob overrides getUserScript() to give us just that. Only then can
# filter_main() in _unpickle( ) do its job of resolveing any user-defined type or function.
# filter_main() in _unpickle( ) do its job of resolving any user-defined type or function.
userScript = self.getUserScript().globalize()
jobsToJobWrappers[self].command = ' '.join( ('_toil', fileStoreID) + userScript)
#Update the status of the jobWrapper on disk
Expand Down

0 comments on commit 9ae4eb5

Please sign in to comment.