Page MenuHomeSoftware Heritage
Paste P1539

basic script to schedule stuff on staging
ActivePublic

Authored by ardumont on Dec 6 2022, 12:27 PM.
swhscheduler@scheduler0:~/addforgenow$ ./addforge-now-schedule-with-url-lister-id-and-optional-visit-type-and-queue.sh git.afpy.org d07d1c90-5016-4ab6-91ac-3300f8eb4fc6
Tue Dec 6 11:27:05 UTC 2022 scheduling git origins with policy never_visited_oldest_update_first to queue add_forge_now:swh.loader.git.tasks.UpdateGitRepository for lister git.afpy.org (tablesample 1)
swh scheduler -C /etc/softwareheritage/scheduler/listener-runner.yml origin send-to-celery --lister-uuid d07d1c90-5016-4ab6-91ac-3300f8eb4fc6 --queue add_forge_now:swh.loader.git.tasks.UpdateGitRepository --policy never_visited_oldest_update_first git --only-disabled
Tue Dec 6 11:27:05 UTC 2022 sleep 60
Tue Dec 6 11:27:05 UTC 2022 scheduling git origins with policy origins_without_last_update to queue add_forge_now:swh.loader.git.tasks.UpdateGitRepository for lister git.afpy.org (tablesample 1)
swh scheduler -C /etc/softwareheritage/scheduler/listener-runner.yml origin send-to-celery --lister-uuid d07d1c90-5016-4ab6-91ac-3300f8eb4fc6 --queue add_forge_now:swh.loader.git.tasks.UpdateGitRepository --policy origins_without_last_update git --only-disabled
Tue Dec 6 11:27:05 UTC 2022 sleep 60