8000 Documentation: Running Luigi on Windows by tfiers · Pull Request #2720 · spotify/luigi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Documentation: 8000 Running Luigi on Windows #2720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
21 changes: 20 additions & 1 deletion doc/running_luigi.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. _RunningLuigi:
Running Luigi
-------------

Running from the Command Line
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -110,6 +111,8 @@ which will return your worker and/or scheduler implementations:

In some cases (like task queue) it may be useful.



Response of luigi.build()/luigi.run()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -122,3 +125,19 @@ Response of luigi.build()/luigi.run()
if __name__ == '__main__':
luigi_run_result = luigi.build(..., detailed_summary=True)
print(luigi_run_result.summary_text)


Luigi on Windows
^^^^^^^^^^^^^^^^

Most Luigi functionality works on Windows. Exceptions:

- Specifying multiple worker processes using the ``workers`` argument for
``luigi.build``, or using the ``--workers`` command line argument. (Similarly,
specifying ``--worker-force-multiprocessing``). For most programs, this will
result in failure (a common sight is ``BrokenPipeError``). The reason is that
worker processes are assumed to be forked from the main process. Forking is
`not possible <https://docs.python.org/dev/library/multiprocessing.html#contexts-and-start-methods>`_
on Windows.
- Running the Luigi central scheduling server as a daemon (i.e. with ``--background``).
Again, a Unix-only concept.
0