Skip to content

Commit

Permalink
Add option for remote sequence storage
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Nov 22, 2023
1 parent 6ae9068 commit 4d21e11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/fprime_gds/executables/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,14 @@ def get_arguments(self) -> Dict[Tuple[str, ...], Dict[str, Any]]:
"required": False,
"type": str,
"help": "Directory to store uplink and downlink files. Default: %(default)s",
},
("--remote-sequence-directory",): {
"dest": "remote_sequence_directory",
"action": "store",
"default": "/seq",
"required": False,
"type": str,
"help": "Directory to save command sequence binaries, on the remote FSW. Default: %(default)s",
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/fprime_gds/flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def construct_app():
args_ns.dictionary,
pipeline.up_store,
pipeline.files.uplinker,
app.config["REMOTE_SEQ_DIRECTORY"],
args_ns.remote_sequence_directory,
],
)
api.add_resource(
Expand Down
1 change: 0 additions & 1 deletion src/fprime_gds/flask/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

SERVE_LOGS = os.environ.get("SERVE_LOGS", "YES") == "YES"

REMOTE_SEQ_DIRECTORY = "/seq"
MAX_CONTENT_LENGTH = 32 * 1024 * 1024 # Max length of request is 32MiB


Expand Down

0 comments on commit 4d21e11

Please sign in to comment.