You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/developers/workflows.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ If a step in a workflow fails, the Dataverse installation makes an effort to rol
27
27
provider offers two steps for sending and receiving customizable HTTP requests.
28
28
*http/sr* and *http/authExt*, detailed below, with the latter able to use the API to make changes to the dataset being processed. (Both lock the dataset to prevent other processes from changing the dataset between the time the step is launched to when the external process responds to the Dataverse instance.)
29
29
30
+
.. _workflow_admin:
31
+
30
32
Administration
31
33
~~~~~~~~~~~~~~
32
34
@@ -36,6 +38,8 @@ At the moment, defining a workflow for each trigger is done for the entire insta
36
38
37
39
In order to prevent unauthorized resuming of workflows, the Dataverse installation maintains a "white list" of IP addresses from which resume requests are honored. This list is maintained using the ``/api/admin/workflows/ip-whitelist`` endpoint of the :doc:`/api/native-api`. By default, the Dataverse installation honors resume requests from localhost only (``127.0.0.1;::1``), so set-ups that use a single server work with no additional configuration.
38
40
41
+
Note: these settings are also exposed and manageable via the Settings API.
42
+
See :ref:`:WorkflowsAdminIpWhitelist`, :ref:`:PrePublishDatasetWorkflowId` and :ref:`:PostPublishDatasetWorkflowId`
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/installation/config.rst
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2417,6 +2417,9 @@ The workflow id returned in this call (or available by doing a GET of /api/admin
2417
2417
2418
2418
Once these steps are taken, new publication requests will automatically trigger submission of an archival copy to the specified archiver, Chronopolis' DuraCloud component in this example. For Chronopolis, as when using the API, it is currently the admin's responsibility to snap-shot the DuraCloud space and monitor the result. Failure of the workflow, (e.g. if DuraCloud is unavailable, the configuration is wrong, or the space for this dataset already exists due to a prior publication action or use of the API), will create a failure message but will not affect publication itself.
2419
2419
2420
+
Note: setting the default workflow is also available via the Settings API.
2421
+
See :ref:`:WorkflowsAdminIpWhitelist`, :ref:`:PrePublishDatasetWorkflowId` and :ref:`:PostPublishDatasetWorkflowId`
2422
+
2420
2423
.. _bag-info.txt:
2421
2424
2422
2425
Configuring bag-info.txt
@@ -4536,7 +4539,11 @@ Using a JSON-based setting, you can set a global default and per-format limits f
4536
4539
4537
4540
(In previous releases of Dataverse, a colon-separated form was used to specify per-format limits, such as ``:TabularIngestSizeLimit:Rdata``, but this is no longer supported. Now JSON is used.)
4538
4541
4539
-
The expected JSON is an object with key/value pairs like the following. Format names are case-insensitive, and all fields are optional. The size limits must be strings with double quotes around them (e.g. ``"10"``) rather than numbers (e.g. ``10``).
4542
+
The expected JSON is an object with key/value pairs like the following.
4543
+
Format names are case-insensitive, and all fields are optional (an empty JSON object equals not restricted).
4544
+
The size limits must be whole numbers, either presented as strings with double quotes around them (e.g. ``"10"``) or numeric values (e.g. ``10`` or ``10.0``).
4545
+
Note that decimal numbers like ``10.5`` are invalid.
4546
+
Any invalid setting will temporarily disable tabular ingest until corrected.
4540
4547
4541
4548
.. code:: json
4542
4549
@@ -5155,6 +5162,43 @@ Number of errors to display to the user when creating DataFiles from a file uplo
5155
5162
5156
5163
``curl -X PUT -d '1' http://localhost:8080/api/admin/settings/:CreateDataFilesMaxErrorsToDisplay``
5157
5164
5165
+
.. _:WorkflowsAdminIpWhitelist:
5166
+
5167
+
:WorkflowsAdminIpWhitelist
5168
+
++++++++++++++++++++++++++
5169
+
5170
+
A semicolon-separated list of IP addresses from which workflow resume requests are honored.
5171
+
By default, the Dataverse installation honors resume requests from localhost only (``127.0.0.1;::1``).
5172
+
This setting allows for preventing unauthorized resuming of workflows.
5173
+
5174
+
``curl -X PUT -d '127.0.0.1;::1;192.168.0.1' http://localhost:8080/api/admin/settings/:WorkflowsAdminIpWhitelist``
5175
+
5176
+
See :ref:`Workflow Admin section <workflow_admin>` for more details and context.
5177
+
5178
+
.. _:PrePublishDatasetWorkflowId:
5179
+
5180
+
:PrePublishDatasetWorkflowId
5181
+
++++++++++++++++++++++++++++
5182
+
5183
+
The identifier of the workflow to be executed prior to dataset publication.
5184
+
This pre-publish workflow is useful for preparing a dataset for public access (e.g., moving files, checking metadata) or starting an approval process.
5185
+
5186
+
``curl -X PUT -d '1' http://localhost:8080/api/admin/settings/:PrePublishDatasetWorkflowId``
5187
+
5188
+
See :ref:`Workflow Admin section <workflow_admin>` for more details and context.
5189
+
5190
+
.. _:PostPublishDatasetWorkflowId:
5191
+
5192
+
:PostPublishDatasetWorkflowId
5193
+
+++++++++++++++++++++++++++++
5194
+
5195
+
The identifier of the workflow to be executed after a dataset has been successfully published.
5196
+
This post-publish workflow is useful for actions such as sending notifications about the newly published dataset or archiving.
5197
+
5198
+
``curl -X PUT -d '2' http://localhost:8080/api/admin/settings/:PostPublishDatasetWorkflowId``
5199
+
5200
+
See :ref:`Workflow Admin section <workflow_admin>` for more details and context.
0 commit comments