Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 25, 2024
1 parent 329f433 commit 8cf0f5d
Show file tree
Hide file tree
Showing 24 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion latest/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 25c16bedfd726ba075ccbe6ed9cccf26
config: 2c881fc5dc6b3a4601885f984b2bb90e
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified latest/.doctrees/environment.pickle
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/application.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/exceptions.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/middlewares.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/runner.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/subscriptions.doctree
Binary file not shown.
Binary file modified latest/.doctrees/methoddocs/utils.doctree
Binary file not shown.
Binary file modified latest/.doctrees/userguides/development.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions latest/_sources/userguides/development.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ For this to work, you must configure a [TaskIQ broker](https://taskiq-python.git

```bash
export SILVERBACK_BROKER_CLASS="taskiq_redis:ListQueueBroker"
export SILVERBACK_BROKER_URI="redis://127.0.0.1:6379"
export SILVERBACK_BROKER_KWARGS='{"queue_name": "taskiq", "url": "redis://127.0.0.1:6379"}'

silverback run "example:app" \
--network :mainnet:alchemy \
Expand All @@ -167,7 +167,7 @@ And then the worker process with 2 worker subprocesses:

```bash
export SILVERBACK_BROKER_CLASS="taskiq_redis:ListQueueBroker"
export SILVERBACK_BROKER_URI="redis://127.0.0.1:6379"
export SILVERBACK_BROKER_KWARGS='{"url": "redis://127.0.0.1:6379"}'

silverback worker -w 2 "example:app"
```
Expand Down
1 change: 1 addition & 0 deletions latest/commands/run.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/methoddocs/application.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/methoddocs/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/methoddocs/middlewares.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/methoddocs/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/methoddocs/subscriptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/methoddocs/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions latest/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
2 changes: 1 addition & 1 deletion latest/searchindex.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions latest/userguides/development.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down Expand Up @@ -269,7 +270,7 @@ <h3>Distributed Execution<a class="headerlink" href="#distributed-execution" tit
<p>The primary components are the client and workers. The client handles Silverback events (blocks and contract event logs) and creates jobs for the workers to process in an asynchronous manner.</p>
<p>For this to work, you must configure a <a class="reference external" href="https://taskiq-python.github.io/guide/architecture-overview.html#broker">TaskIQ broker</a> capable of distributed processing. For instance, with <a class="reference external" href="https://github.com/taskiq-python/taskiq-redis"><code class="docutils literal notranslate"><span class="pre">taskiq_redis</span></code></a> you could do something like this for the client:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_CLASS</span><span class="o">=</span><span class="s2">&quot;taskiq_redis:ListQueueBroker&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_URI</span><span class="o">=</span><span class="s2">&quot;redis://127.0.0.1:6379&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_KWARGS</span><span class="o">=</span><span class="s1">&#39;{&quot;queue_name&quot;: &quot;taskiq&quot;, &quot;url&quot;: &quot;redis://127.0.0.1:6379&quot;}&#39;</span>

silverback<span class="w"> </span>run<span class="w"> </span><span class="s2">&quot;example:app&quot;</span><span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--network<span class="w"> </span>:mainnet:alchemy<span class="w"> </span><span class="se">\</span>
Expand All @@ -278,7 +279,7 @@ <h3>Distributed Execution<a class="headerlink" href="#distributed-execution" tit
</div>
<p>And then the worker process with 2 worker subprocesses:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_CLASS</span><span class="o">=</span><span class="s2">&quot;taskiq_redis:ListQueueBroker&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_URI</span><span class="o">=</span><span class="s2">&quot;redis://127.0.0.1:6379&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_KWARGS</span><span class="o">=</span><span class="s1">&#39;{&quot;url&quot;: &quot;redis://127.0.0.1:6379&quot;}&#39;</span>

silverback<span class="w"> </span>worker<span class="w"> </span>-w<span class="w"> </span><span class="m">2</span><span class="w"> </span><span class="s2">&quot;example:app&quot;</span>
</pre></div>
Expand Down
1 change: 1 addition & 0 deletions latest/userguides/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down

0 comments on commit 8cf0f5d

Please sign in to comment.