@@ -302,78 +302,3 @@ If you specify an :cylc:conf:`[events]execution timeout` and an
302
302
ignored.
303
303
304
304
.. cylc-scope ::
305
-
306
-
307
- .. _CustomJobSubmissionMethods :
308
-
309
- Custom Job Submission Methods
310
- -----------------------------
311
-
312
- Defining a new job runner handler requires a little Python programming. Use
313
- the built-in handlers (e.g. :py:mod: `cylc.flow.job_runner_handlers.background `)
314
- as examples.
315
-
316
-
317
- An Example
318
- ^^^^^^^^^^
319
-
320
- The following ``qsub.py `` module overrides the built-in *pbs *
321
- job runner handler to change the directive prefix from ``#PBS `` to
322
- ``#QSUB ``:
323
-
324
- .. TODO - double check that this still works, it's been a while
325
-
326
- .. code-block :: python
327
-
328
- # !/usr/bin/env python3
329
-
330
- from cylc.flow.job_runner_handlers.pbs import PBSHandler
331
-
332
- class QSUBHandler (PBSHandler ):
333
- DIRECTIVE_PREFIX = " #QSUB "
334
-
335
- JOB_RUNNER_HANDLER = QSUBHandler()
336
-
337
- If this is in the Python search path (see
338
- :ref: `Where To Put Job Runner Handler Modules ` below) you can use it by
339
- name in your global configuration:
340
-
341
- .. code-block :: cylc
342
-
343
- [platforms]
344
- [[my_platform]]
345
- hosts = myhostA, myhostB
346
- job runner = qsub # <---!
347
-
348
- Then in your ``flow.cylc `` file you can use this platform:
349
-
350
- .. code-block :: cylc
351
-
352
- [scheduling]
353
- [[graph]]
354
- R1 = "a"
355
- [runtime]
356
- [[root]]
357
- execution time limit = PT1M
358
- platform = my_platform
359
- [[[directives]]]
360
- -l nodes = 1
361
- -q = long
362
- -V =
363
-
364
- Note, this workflow will fail at run time because we only changed the
365
- directive format, and PBS does not accept ``#QSUB `` directives in
366
- reality.
367
-
368
-
369
- .. _Where To Put Job Runner Handler Modules :
370
-
371
- Where To Put Job Runner Handler Modules
372
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
373
-
374
- Custom job runner handlers must be installed on workflow and job
375
- hosts in one of these locations:
376
-
377
- - under ``WORKFLOW-RUN-DIR/lib/python/ ``
378
- - under ``CYLC-PATH/cylc/flow/job_runner_handlers/ ``
379
- - or anywhere in ``$PYTHONPATH ``
0 commit comments