[webapp] Wrong save code now status detected
A save code request was wrongly declared as 'failed' but it was correctly scheduled and running.
The logs of the loaders:
[2023-04-06 11:29:05,976: INFO/MainProcess] Task swh.loader.git.tasks.UpdateGitRepository[aa25e2eb-6ce0-4e36-a30e-9e771d1e0491] received
[2023-04-06 11:29:06,136: INFO/ForkPoolWorker-1] Load origin 'https://github.com/git-for-windows/git' with type 'git'
Enumerating objects: 6026, done.
Counting objects: 100% (5282/5282), done.
Compressing objects: 100% (2220/2220), done.
Total 6026 (delta 4238), reused 3274 (delta 3062), pack-reused 744
[2023-04-06 11:29:11,697: INFO/ForkPoolWorker-1] Listed 1720 refs for repo https://github.com/git-for-windows/git
[2023-04-06 11:36:59,392: INFO/ForkPoolWorker-1] Fetched 6027 objects; 3974 are new
[2023-04-06 11:36:59,808: INFO/ForkPoolWorker-1] Task swh.loader.git.tasks.UpdateGitRepository[aa25e2eb-6ce0-4e36-a30e-9e771d1e0491] succeeded in 473.82948165852576s: {'status': 'eventful'}
[2023-04-06 11:36:59,810: INFO/MainProcess] Task swh.loader.cvs.tasks.LoadCvsRepository[f8abcfe9-994b-42fd-92ba-7f4dc0102cbb] received
[2023-04-06 11:37:00,044: INFO/ForkPoolWorker-1] Load origin 'rsync://cvs.savannah.nongnu.org/sources/cvs/ccvs' with type 'cvs'
The scheduler task:
id | type | arguments | next_run
| current_interval | status | policy | retries_left | priority
-----------+----------+---------------------------------------------------------------------------------------------------------+-------------------------------+------------------+--------------------+---------+--------------+----------
415365315 | load-cvs | {"args": [], "kwargs": {"url": "rsync://cvs.savannah.nongnu.org/sources/cvs/ccvs"}} | 2023-04-06 10:29:32.37863+00 | 1 day | next_run_scheduled | oneshot | 0 | high
id | task | backend_id | scheduled | started | ended | metadata | status
------------+-----------+--------------------------------------+-------------------------------+-------------------------------+-------+------------------------------------------------------------+---------
1427827960 | 415365315 | f8abcfe9-994b-42fd-92ba-7f4dc0102cbb | 2023-04-06 10:29:34.578768+00 | 2023-04-06 11:36:59.912496+00 | | {"worker": "loader@loader-highppriority-5f646587d4-2rlbb"} | started
(1 row)
[4] swh-web db entry:
2023-04-06 14:49:19 swh-web@belvedere:5432 λ select * from save_origin_request where loading_task_id=415365315;
+-[ RECORD 1 ]--------+--------------------------------------------------+
| id | 288742 |
| request_date | 2023-04-06 10:29:32.405761+00 |
| visit_type | cvs |
| origin_url | rsync://cvs.savannah.nongnu.org/sources/cvs/ccvs |
| status | accepted |
| loading_task_id | 415365315 |
| visit_date | 2023-04-06 10:34:33.375783+00 |
| loading_task_status | failed |
| visit_status | failed |
| user_ids | "276888006185258059384633125433590890964" |
| note | (null) |
| from_webhook | f |
| webhook_origin | (null) |
| snapshot_swhid | (null) |
+---------------------+--------------------------------------------------+