diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2022-07-20 04:43:32 -0400 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2022-07-20 04:43:32 -0400 |
commit | 1932ca7ed3955d4071e74cb074c7b270f8487d40 (patch) | |
tree | 01f49fd31e2ac8e1e84d789d73f1c240f631a143 /libeufin/nexus-tutorial.rst | |
parent | c943096d2f257381e5abf99b4db21233683c11cf (diff) | |
download | docs-1932ca7ed3955d4071e74cb074c7b270f8487d40.tar.gz docs-1932ca7ed3955d4071e74cb074c7b270f8487d40.tar.bz2 docs-1932ca7ed3955d4071e74cb074c7b270f8487d40.zip |
add a pair of task scheduling commands at the end of the nexus tutorial
Diffstat (limited to 'libeufin/nexus-tutorial.rst')
-rw-r--r-- | libeufin/nexus-tutorial.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libeufin/nexus-tutorial.rst b/libeufin/nexus-tutorial.rst index 408562a1..33e9dfb5 100644 --- a/libeufin/nexus-tutorial.rst +++ b/libeufin/nexus-tutorial.rst @@ -427,6 +427,28 @@ Now the list of transactions has grown by several entries: } ] } +Lastly, you will want to schedule some tasks to run +periodically in the background. +This provides a more realistic system to explore. + +.. code-block:: console + + $ libeufin-cli accounts task-schedule jrluser \ + --task-type submit \ + --task-name submit-payments-each-second \ + --task-cronspec "* * *" + $ libeufin-cli accounts task-schedule jrluser \ + --task-type fetch \ + --task-name fetch-reports-each-second \ + --task-cronspec "* * *" \ + --task-param-level report \ + --task-param-range-type latest + +The first task submits payments and the second fetches reports. +Both are specified to run every second (cronspec ``"* * *"``). +To reduce the frequency to every five seconds, use the cronspec ``"*/5 * *"`` +(remember to quote, to protect from shell filename expansion). + .. note:: The sandbox is intended as a testing tool and thus not stable. |