File: create-child-workspace.rst

package info (click to toggle)
debusine 0.14.4
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 15,344 kB
  • sloc: python: 198,722; sh: 850; javascript: 335; makefile: 117
file content (42 lines) | stat: -rw-r--r-- 2,068 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.. task:: CreateChildWorkspace

CreateChildWorkspace task
-------------------------

This server task creates a child workspace, such as a :ref:`workspace for
experiments <experiment-workspaces>`.  It requires the
``can_create_child_workspace`` permission on the base workspace.

The ``task_data`` for this task may contain the following keys:

* ``prefix`` (string): a prefix for the name of the experiment; must start
  with an ASCII letter, and must only contain ASCII letters, digits, ``+``,
  ``-``, ``.``, or ``_``
* ``suffix`` (string): a suffix for the name of the experiment; must start
  with an ASCII letter, and must only contain ASCII letters, digits, ``+``,
  ``-``, ``.``, or ``_``
* ``public`` (boolean, defaults to True): whether the new workspace is
  public
* ``owner_group`` (string, optional): the name of the existing group in the
  base workspace's scope to set as the owner of the new workspace; if unset,
  the task will create a new ephemeral group
* ``workflow_template_names`` (list of strings, defaults to the empty list):
  names of workflow templates to copy from the base workspace to the new
  workspace
* ``expiration_delay`` (integer, optional, defaults to 60): number of days
  since the last task completion time after which the new workspace can be
  deleted

The base workspace is the workspace that this task runs in.  The task
creates a new workspace whose name is composed of ``prefix`` and ``suffix``
separated by an ASCII hyphen, makes it inherit from the base workspace, and
gives it the specified expiration delay.  It creates the usual
:ref:`singleton collections <collection-singleton>` in the new workspace.
It creates a new ephemeral group (or looks up an existing one, if
``owner_group`` is set), and assigns the ``OWNER`` role for the new
workspace to that group.  Finally, it copies the specified workflow
templates to the new workspace.

If the task creates an ephemeral group, it adds the user who created the
task to the group with group administration permissions, in order that they
can manage its membership.