Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1457
T4505 staging
Active
Public
Actions
Authored by
vsellier
on Sep 21 2022, 8:43 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/bin/bash
#sample=0.5;
sample
=
1
policies
=
never_visited_oldest_update_first
;
sleep
=
10
lister_name
=
'git.acdw.net'
;
lister_uuid
=
'aae35c68-75a9-4ff6-bb10-d4697662f374'
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
\
--only-disabled
echo
"
$(
date
)
sleep
$sleep
"
sleep
$sleep
done
done
Event Timeline
vsellier
created this paste.
Sep 21 2022, 8:43 AM
2022-09-21 08:43:07 (UTC+2)
vsellier
mentioned this in
Unknown Object (Maniphest Task)
.
Sep 21 2022, 8:47 AM
2022-09-21 08:47:17 (UTC+2)
Log In to Comment