File: index.rst

package info (click to toggle)
python-parsl 2025.01.13%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,072 kB
  • sloc: python: 23,817; makefile: 349; sh: 276; ansic: 45
file content (26 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. _apps:

Writing Parsl Apps
==================

An **App** defines a computation that will be executed asynchronously by Parsl.
Apps are Python functions marked with a decorator which
designates that the function will run asynchronously and cause it to return
a :class:`~concurrent.futures.Future` instead of the result.

Apps can be one of three types of functions, each with their own type of decorator

- ``@python_app``: Most Python functions
- ``@bash_app``: A Python function which returns a command line program to execute
- ``@join_app``: A function which launches one or more new Apps

Start by learning how to write Python Apps, which define most of the rules needed to write
other types of Apps.

.. toctree::
   :maxdepth: 1

   python
   bash
   mpi_apps
   joins