Skip to content

Commit

Permalink
Merge pull request #344 from oliver-sanders/4520.homeless-jobs
Browse files Browse the repository at this point in the history
platforms: document how to run jobs on a homeless platform.
  • Loading branch information
oliver-sanders authored Dec 15, 2021
2 parents 94141d9 + a0f2cc2 commit ff0c168
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/reference/config/writing-platform-configs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,44 @@ platform. Job files can be installed on the workflow host.
Therefore the same names **cannot** be used for platforms and platform
groups. The ``global.cylc`` file will fail validation if the same name is
used in both.

Platform with no ``$HOME`` directory
------------------------------------

.. admonition:: Scenario

You are trying to run jobs on a platform where the compute nodes don't
have a configured ``HOME`` directory.

So long as the login and compute nodes share a filesystem the workflow can be
installed on the shared filesystem using
:cylc:conf:`global.cylc[install][symlink dirs]`.

The ``$CYLC_RUN_DIR`` variable can then be set on the compute node to point
at the ``cylc-run`` directory on the shared filesystem using
:cylc:conf:`global.cylc[platforms][<platform name>]global init-script`.

.. code-block:: cylc
:caption: part of a ``global.cylc`` config file
[platforms]
[[homeless-hpc]]
job runner = my-job-runner
install target = homeless-hpc
global init-script = """
export CYLC_RUN_DIR=/shared/filesystem/cylc-run
"""
[install]
[[symlink dirs]]
[[[homeless-hpc]]]
run = /shared/filesystem/
In this example Cylc will install workflows into
``/shared/filesystem/cylc-run``.

.. note::

If you are running :term:`schedulers <scheduler>` directly on the login node
and submitting jobs locally then the platform name and install target should
be ``localhost``.

0 comments on commit ff0c168

Please sign in to comment.