Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
e2f7004b
Commit
e2f7004b
authored
3 years ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Add link to diagnostics.py
parent
6840d5e0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!39
DOC: add doc on serverside
Pipeline
#18136
failed
3 years ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doc/tutorials/serverside.rst
+13
-9
13 additions, 9 deletions
src/doc/tutorials/serverside.rst
with
13 additions
and
9 deletions
src/doc/tutorials/serverside.rst
+
13
−
9
View file @
e2f7004b
...
...
@@ -2,17 +2,18 @@
Server Side Scripting
=====================
The administrator may store regularly needed scripts, e.g. for computing a
standardized analysis, on
the same machine as the CaosDB server, "on the server
side", where they can be run directly by the
server.
The administrator may store regularly needed scripts, e.g. for computing a
standardized analysis, on
the same machine as the CaosDB server, "on the server
side", where they can be run directly by the
server.
The execution of those scripts can be initiated using the Python client, or the web interface.
The execution of those scripts can be initiated using the Python client, or the
web interface.
Call a Script
~~~~~~~~~~~~~
If you have access to the server and sufficient permissions to run the script,
execution is fairly
simple:
If you have access to the server and sufficient permissions to run the script,
execution is fairly
simple:
.. code:: python
...
...
@@ -35,9 +36,12 @@ permissions and changes are logged as if they were done by you directly.
Testing it
~~~~~~~~~~
You can try this out using for example the ``diagnostics.py`` script (it is also available on
https://demo.indiscale.com). The script returns information about the server in JSON format. You can
do for example the following:
You can try this out using for example the ``diagnostics.py`` script (it is part
of the `CaosDB server repository
<https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/blob/main/scripting/bin/administration/diagnostics.py>`_
and is also available on https://demo.indiscale.com). The script returns
information about the server in JSON format. You can do for example the
following:
.. code:: python
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment