Skip to content

Fixes in bulk staging function#27

Merged
hailihu merged 9 commits intomasterfrom
stage-filelist-as-array
Nov 27, 2024
Merged

Fixes in bulk staging function#27
hailihu merged 9 commits intomasterfrom
stage-filelist-as-array

Conversation

@hailihu
Copy link
Contributor

@hailihu hailihu commented Oct 22, 2024

Fixes to bulk staging:

  • Stage file-list as array in a single bulk request
  • Put target in requests.log
  • Add activity (PIN ur UNPIN) of bulk request in requests.log
  • Except for storing the request ID in ~/.ada/requests.log, return the request ID to the prompt when a stage/unstage command is submitted.
  • In debug mode, mention that information about bulk request is logged in requests.log
  • Remove default lifetime from unstage/unpin command

@hailihu hailihu marked this pull request as draft October 22, 2024 08:34
@hailihu hailihu linked an issue Oct 22, 2024 that may be closed by this pull request
@hailihu hailihu changed the title Stage file-list as array in a single bulk request Fixes in bulk staging function Oct 22, 2024
@hailihu hailihu self-assigned this Oct 23, 2024
@hailihu hailihu marked this pull request as ready for review October 23, 2024 19:13
@hailihu hailihu assigned onnozweers and unassigned hailihu Oct 23, 2024
@hailihu
Copy link
Contributor Author

hailihu commented Oct 23, 2024

ADA commands tested are:

# stage file
./ada --tokenfile tokenfile_prod.conf --stage ${prod_tape_path}/${filename} --lifetime 1D --api "${prod_api_url}" --debug

# stage dir recursively
./ada --tokenfile tokenfile_prod.conf --stage ${prod_tape_path}/${dirname} --lifetime 1D --api "${prod_api_url}" --debug --recursive

# stage from file
./ada --tokenfile tokenfile_prod.conf --stage --from-file file-list --lifetime 1D --api "${prod_api_url}" --debug

# unstage file
./ada --tokenfile tokenfile_prod.conf --unstage ${prod_tape_path}/${filename} --api "${prod_api_url}" --debug

# unstage dir
./ada --tokenfile tokenfile_prod.conf --unstage ${prod_tape_path}/${dirname} --api "${prod_api_url}" --debug --recursive

# unstage from file
./ada --tokenfile tokenfile_prod.conf --unstage --from-file file-list --api "${prod_api_url}"  --debug

@hailihu hailihu requested a review from onnozweers November 26, 2024 10:30
@hailihu hailihu assigned hailihu and unassigned onnozweers Nov 26, 2024
@hailihu hailihu mentioned this pull request Nov 26, 2024
@hailihu hailihu merged commit c41af0a into master Nov 27, 2024
@hailihu hailihu deleted the stage-filelist-as-array branch November 27, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants