Skip to content

Commit

Permalink
Fixed asset names and task workign directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AnarManafov committed Apr 11, 2022
1 parent a91eba0 commit c432ef2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### DDS common
Fixed: On task done remove agents from the agent to tasks mapping.
Fixed: Replace std::iterator as it's deprecated (C++17).
Fixed: Tasks working directory is set to their slot directory instead of $DDS_LOCATION.
Added: every DDS module logs now its pid, group id and parent pid. (GH-403)
Added: Support for Task Assets. (GH-406)

Expand Down
2 changes: 1 addition & 1 deletion dds-agent/src/CommanderChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ bool CCommanderChannel::on_cmdASSIGN_USER_TASK(SCommandAttachmentImpl<cmdASSIGN_
for (const auto& asset : assets)
{
stringstream assetFileName;
assetFileName << asset->getName() << "_" << task->getName() << ".asset";
assetFileName << asset->getName() << ".asset";
fs::path pathAsset(dir);
pathAsset /= assetFileName.str();

Expand Down
3 changes: 3 additions & 0 deletions etc/dds_user_task_wrapper.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ fi

# %DDS_USER_ENVIRONMENT%

# Change the task working dir
cd "$(dirname "$0")"

# Run user process in background to prevent propogation of the signals
# Otherwise user task will catch the signals sent to the wrapper
# %DDS_USER_TASK% &
Expand Down

0 comments on commit c432ef2

Please sign in to comment.