NDCMS / lobster

A userspace workflow management tool for harnessing non-dedicated resources for high-throughput workloads.
MIT License
3 stars 14 forks source link

Attribute Error when updating fail/skip thresholds #639

Open rebucci opened 5 years ago

rebucci commented 5 years ago

If you have extra_inputs in your workflow, editing threshold_for_failure/skipping while the job gives an attribute error about extra_inputs.

AttributeError: can't change attribute extra_inputs of type <class 'lobster.core.workflow.Workflow'>

The threshold values do not update.

Full error from process.log:

[INFO] lobster.actions: updating configuration
[INFO] lobster.workflow: merging outputs up to 3000000000.0 bytes
[INFO] lobster.configure: updating item 0 of list 'extra_inputs' with value 'AM_ana' (old: '/tmpscratch/users/rbucci/03_StubAnalyzer/SW_Analyzer_Effs_20190311/effs_el0_loose/AM_ana')
[ERROR] lobster.actions: failed to update configuration:
Traceback (most recent call last):
  File "/afs/crc.nd.edu/user/r/rbucci/.lobster/lib/python2.7/site-packages/lobster/actions.py", line 47, in update_configuration
    self.config.update(new_config)
  File "/afs/crc.nd.edu/user/r/rbucci/.lobster/lib/python2.7/site-packages/lobster/util.py", line 215, in update
    ours[n].update(theirs[n])
  File "/afs/crc.nd.edu/user/r/rbucci/.lobster/lib/python2.7/site-packages/lobster/util.py", line 225, in update
    setattr(self, arg, ours)
  File "/afs/crc.nd.edu/user/r/rbucci/.lobster/lib/python2.7/site-packages/lobster/util.py", line 131, in __setattr__
    raise AttributeError("can't change attribute {} of type {}".format(attr, type(self)))
AttributeError: can't change attribute extra_inputs of type <class 'lobster.core.workflow.Workflow'>