Skip to content

Commit

Permalink
Add error for dag filename if on /users
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Aggleton committed May 4, 2016
1 parent 4ea1c1f commit 4e5f7b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htcondenser/core/dagman.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class DAGMan(object):
Parameters
----------
filename : str
Filename to write DAG jobs.
Filename to write DAG jobs. This cannot be on /users,
must be on NFS drive, e.g. /storage.
status_file : str, optional
Filename for DAG status file. See
Expand Down Expand Up @@ -55,6 +56,8 @@ def __init__(self,
other_args=None):
super(DAGMan, self).__init__()
self.dag_filename = filename
if os.path.abspath(self.dag_filename).startswith('/users'):
raise IOError('You cannot put DAG filename on /users - must be on NFS (e.g.. /storage')
self.status_file = status_file
self.status_update_period = str(status_update_period)
self.dot = dot
Expand Down

0 comments on commit 4e5f7b9

Please sign in to comment.