Skip to content

Commit

Permalink
MRG: Merge pull request #676 from octue/make-signing-output-datasets-…
Browse files Browse the repository at this point in the history
…optional

Make signed URLs for output datasets optional
  • Loading branch information
cortadocodes authored Aug 15, 2024
2 parents e116143 + 42940d1 commit fa2cfdf
Show file tree
Hide file tree
Showing 20 changed files with 361 additions and 168 deletions.
4 changes: 3 additions & 1 deletion docs/source/creating_apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,6 @@ When the analysis has finished, it is automatically finalised. This means:

You can manually call :mod:`analysis.finalise <octue.resources.analysis.Analysis.finalise>` if you want to upload
any output datasets to a different location to the one specified in the app configuration. If you do this, the
analysis will not be finalised again - make sure you only call it when your output data is ready.
analysis will not be finalised again - make sure you only call it when your output data is ready. Note that the
``output_location`` and ``use_signed_urls_for_output_datasets`` settings in the app configuration are ignored if you
call it manually.
1 change: 1 addition & 0 deletions docs/source/creating_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ App configuration file (optional)
- ``configuration_manifest``
- ``children``
- ``output_location``
- ``use_signed_urls_for_output_datasets``

If an app configuration file is provided, its path must be specified in ``octue.yaml`` under the
"app_configuration_path" key.
Expand Down
176 changes: 89 additions & 87 deletions docs/source/inter_service_compatibility.rst

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions octue/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class AppConfiguration:
:param str|dict|octue.resources.Manifest|None configuration_manifest: a manifest of datasets to configure the app
:param str|list(dict)|None children: details of the children the app requires
:param str|None output_location: the path to a cloud directory to save output datasets at
:param bool use_signed_urls_for_output_datasets: if `True`, use signed URLs instead of cloud URIs for dataset paths in the output manifest
:return None:
"""

Expand All @@ -118,12 +119,14 @@ def __init__(
configuration_manifest=None,
children=None,
output_location=None,
use_signed_urls_for_output_datasets=True,
**kwargs,
):
self.configuration_values = configuration_values
self.configuration_manifest = configuration_manifest
self.children = children
self.output_location = output_location
self.use_signed_urls_for_output_datasets = use_signed_urls_for_output_datasets

if kwargs:
logger.warning(f"The following keyword arguments were not used by {type(self).__name__}: {kwargs!r}.")
Expand Down
Loading

0 comments on commit fa2cfdf

Please sign in to comment.