Page MenuHomeSoftware Heritage
Paste P1458

T4505 production
ActivePublic

Authored by vsellier on Sep 21 2022, 8:50 AM.
```
root@saatchi:/home/swhscheduler# cat git-acdw-net.sh
#!/bin/bash
#sample=0.5;
sample=1
policies=never_visited_oldest_update_first;
sleep=10
lister_name='git.acdw.net';
lister_uuid='bb7f001d-fe7b-41c8-b03f-c52756ec0e4a'
queue="add_forge_now:swh.loader.git.tasks.UpdateGitRepository";
visit_type=git;
while true; do
for policy in $policies
do
echo "$(date) scheduling $visit_type origins with policy ${policy} to queue ${queue} for lister ${lister_name} (tablesample ${sample})"
SWH_CONFIG_FILENAME=/etc/softwareheritage/scheduler/listener-runner.yml
swh scheduler -C $SWH_CONFIG_FILENAME \
origin send-to-celery --lister-uuid $lister_uuid \
--queue $queue \
--policy $policy $visit_type
echo "$(date) sleep $sleep"
sleep $sleep
done
done
```

Event Timeline

vsellier mentioned this in Unknown Object (Maniphest Task).