Skip to content

Commit 482048d

Browse files
committed
Fix robocopy
1 parent b5511b8 commit 482048d

3 files changed

Lines changed: 360 additions & 355 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dev = [
3636
"pytest-cov",
3737
'aind-behavior-vr-foraging[data]',
3838
'aind-behavior-vr-foraging[mappers]',
39-
"aind-clabe >= 0.10.5",
39+
"aind-clabe >= 0.10.7",
4040
]
4141

4242
[tool.codespell]

scripts/aind.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,17 @@ def _run_data_transfer(
9494

9595
# We run an immediate transfer first to move the behavior data off the rig,
9696
# we do not trigger the data-transfer-request yet and instead defer to later.
97-
RobocopyService(
98-
source=launcher.session_directory / "behavior",
99-
settings=RobocopySettings(
100-
delete_src=False,
101-
destination=Path(watchdog_settings.destination) / "behavior",
102-
),
103-
).transfer()
97+
try:
98+
RobocopyService(
99+
source=launcher.session_directory,
100+
settings=RobocopySettings(
101+
delete_src=False,
102+
destination=Path(watchdog_settings.destination),
103+
exclude_dirs=["behavior-videos"],
104+
),
105+
).transfer()
106+
except Exception as e:
107+
logger.error("Initial data transfer failed: %s", e)
104108

105109
WatchdogDataTransferService(
106110
source=launcher.session_directory,

0 commit comments

Comments
 (0)