-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
152 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
src/user-guide/running-workflows/external-command-execution.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
.. _Managing External Command Execution: | ||
|
||
External Command Execution | ||
-------------------------- | ||
Scheduler Subprocesses | ||
---------------------- | ||
|
||
Job submission commands, event handlers, and job poll and kill commands, are | ||
executed by the :term:`scheduler` in a "pool" of asynchronous | ||
subprocesses, in order to avoid blocking the workflow process. The process pool | ||
is actively managed to limit it to a configurable size, using | ||
executed by the :term:`scheduler` in a pool of asynchronous subprocesses. | ||
|
||
The process pool is size is configurable via | ||
:cylc:conf:`global.cylc[scheduler]process pool size`. | ||
Custom event handlers should be lightweight and quick-running because they | ||
will tie up a process pool member until they complete, and the workflow will | ||
appear to stall if the pool is saturated with long-running processes. | ||
However, to guard against rogue commands that hang indefinitely, processes | ||
are killed after a configurable timeout | ||
(:cylc:conf:`global.cylc[scheduler]process pool timeout`). | ||
All process kills are | ||
logged by the :term:`scheduler`. For killed job submissions, the associated | ||
tasks also go to the *submit-failed* state. | ||
|
||
Event handlers should be lightweight and quick-running because they tie up | ||
a process pool member until they complete, and the workflow will appear to | ||
stall if the pool is saturated with long-running processes. | ||
|
||
To protect the scheduler, processes are killed after a configurable timeout | ||
(:cylc:conf:`global.cylc[scheduler]process pool timeout`). This will be | ||
logged by the :term:`scheduler`. For killed job submissions, associated tasks | ||
go to the *submit-failed* state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.