Skip to content

Commit

Permalink
CHORES: pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Jun 13, 2024
1 parent f024ef4 commit 86ed79b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions 06_coding_patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,10 @@ An alternative is to let the solver run in a separate process and communicate
with it using a pipe. This approach allows the solver to be interrupted at any
time, enabling the application to react immediately. Python's multiprocessing
module provides reasonably simple ways to achieve this.
[This example](https://github.com/d-krupke/cpsat-primer/blob/main//examples/embedding_cpsat/) showcases such an approach. However,
for scaling this approach up, you will actually have to build a task queues
where the solver is run by workers. Using multiprocessing can still be useful
for the worker to remain responsive for stop signals while the solver is
running.
[This example](https://github.com/d-krupke/cpsat-primer/blob/main//examples/embedding_cpsat/)
showcases such an approach. However, for scaling this approach up, you will
actually have to build a task queues where the solver is run by workers. Using
multiprocessing can still be useful for the worker to remain responsive for stop
signals while the solver is running.

---
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3119,11 +3119,11 @@ An alternative is to let the solver run in a separate process and communicate
with it using a pipe. This approach allows the solver to be interrupted at any
time, enabling the application to react immediately. Python's multiprocessing
module provides reasonably simple ways to achieve this.
[This example](./examples/embedding_cpsat/) showcases such an approach. However,
for scaling this approach up, you will actually have to build a task queues
where the solver is run by workers. Using multiprocessing can still be useful
for the worker to remain responsive for stop signals while the solver is
running.
[This example](https://github.com/d-krupke/cpsat-primer/blob/main//examples/embedding_cpsat/)
showcases such an approach. However, for scaling this approach up, you will
actually have to build a task queues where the solver is run by workers. Using
multiprocessing can still be useful for the worker to remain responsive for stop
signals while the solver is running.

---

Expand Down

0 comments on commit 86ed79b

Please sign in to comment.