Lost samples, hanging workers fix

Fixed lost samples error due to
a) samba file overwriting not working
b) workers being disconnected when messages are sent

Fixed (?) hanging workers due to error stream not being read which created a deadlock
If you restart an frame job while the old one is still running then it
removes the folders and the gatherer hangs
On 30 Jun 2014 16:59, "Bennie Leonard" <notifications@github.com> wrote:

> In gatherer.py:
>
> > @@ -121,7 +122,10 @@ def run(self):
> >
> >                      # Gather, clear temp files and remove sim
> >                      self.gather_results(sim)
> > -                    rmtree(output_dir)
> > +                    try:
> > +                        rmtree(output_dir)
> > +                    except OSError:
> > +                        self.log.info('Folder does not exist: ' + output_dir) #TODO: would this affect the db, should we just remove it and alert the user?
>
> Why would the folder not exist?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cilib/pleiades/pull/48/files#r14354469>.
>