Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342473
D903.id2871.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D903.id2871.diff
View Options
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -104,13 +104,13 @@
This task should then spawn a series of loader tasks.
-For example, to add a recurring task that will scrape and maintain updated
-the Debian stretch distribution, one can do (from this git repository):
+For example, to add a (one shot) task that will list git repos on the
+0xacab.org gitlab instance, one can do (from this git repository):
```
$ docker-compose run swh-scheduler-api \
swh-scheduler -c remote -u http://swh-scheduler-api:5008/ \
- task add swh-lister-gitlab-full -p oneshot instance=https://0xacab.org
+ task add swh-lister-gitlab-full -p oneshot api_baseurl=https://0xacab.org/api/v4
Created 1 tasks
@@ -121,7 +121,7 @@
Policy: oneshot
Args:
Keyword args:
- instance: https://0xacab.org
+ api_baseurl=https://0xacab.org/api/v4
```
This will insert a new task in the scheduler. To list existing tasks for a
@@ -141,7 +141,7 @@
Policy: oneshot
Args:
Keyword args:
- instance: https://0xacab.org
+ api_baseurl=https://0xacab.org/api/v4
```
To list all existing task types:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 12:45 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218233
Attached To
D903: Fix the example code to add a gitlab lister task
Event Timeline
Log In to Comment