Skip to content

Commit

Permalink
Merge branch 'hotfix/2.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Nov 5, 2021
2 parents 5ca5764 + 3b70c10 commit 13d00dc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
28 changes: 14 additions & 14 deletions ibllib/pipes/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,28 @@ def run(self, **kwargs):
_logger.info(f"Running on machine: {self.machine}")
_logger.info(f"running ibllib version {version.ibllib()}")
# setup
setup = self.setUp(**kwargs)
_logger.info(f"Setup value is: {setup}")
self.status = 0
if not setup:
# case where outputs are present but don't have input files locally to rerun task
# label task as complete
_, self.outputs = self.assert_expected_outputs()
else:
# run task
try:
start_time = time.time()
try:
setup = self.setUp(**kwargs)
_logger.info(f"Setup value is: {setup}")
self.status = 0
if not setup:
# case where outputs are present but don't have input files locally to rerun task
# label task as complete
_, self.outputs = self.assert_expected_outputs()
else:
# run task
if self.gpu >= 1:
if not self._creates_lock():
self.status = -2
_logger.info(f"Job {self.__class__} exited as a lock was found")
return
self.outputs = self._run(**kwargs)
_logger.info(f"Job {self.__class__} complete")
except BaseException:
_logger.error(traceback.format_exc())
_logger.info(f"Job {self.__class__} errored")
self.status = -1
except BaseException:
_logger.error(traceback.format_exc())
_logger.info(f"Job {self.__class__} errored")
self.status = -1
self.time_elapsed_secs = time.time() - start_time

# log the outputs
Expand Down
3 changes: 3 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Release Notes 2.3
### Release Notes 2.3.1 2021-11-5
- Add setup method in tasks.py into try except to catch globus download errors

### Release Notes 2.3.0 2021-11-4
- Add input and output signatures to all ephys tasks
- Add datahandler to task to download and upload data based on location where task is run
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='ibllib',
version='2.3.0',
version='2.3.1',
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
description='IBL libraries',
license="MIT",
Expand Down

0 comments on commit 13d00dc

Please sign in to comment.