Skip to content

Commit

Permalink
Suggest when testing Apps within libraries is helpful
Browse files Browse the repository at this point in the history
E.g., join apps and other complex patterns.

Thanks, @Andrew-S-Rosen, for noting where he uses Parsl inside the
library.
  • Loading branch information
WardLT committed Dec 30, 2024
1 parent 5a92220 commit c396d1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/userguide/apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ Learn more about the types of data allowed in `the data section <data.html>`_.

Any changes to mutable input arguments will be ignored.

.. _special-kwargs:

Special Keyword Arguments
+++++++++++++++++++++++++

Expand Down
3 changes: 3 additions & 0 deletions docs/userguide/modularizing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ Key points to note:
Keeping Parsl out of the function definitions simplifies testing
because you will not need to run Parsl when testing the code.

- *Advanced*: Consider including Parsl decorators in the library if using complex workflow patterns,
:ref:`join apps <label-joinapp>` or such as functions which take :ref:`special arguments <special-kwargs>`.

.. literalinclude:: examples/library/app.py
:caption: library/app.py

Expand Down

0 comments on commit c396d1d

Please sign in to comment.