remove unused rake tasks
The api server codebase has a few rake tasks that seem superfluous:
Investigate if these are still needed, if not delete (and remove doc references)!
These two seem to be for one-time migrations mentioned in the upgrade docs. Double check.
Updated by Ward Vandewege 4 months ago
This file defines "symbols:check" and "symbols:stringify", which were used to migrate pre-2.0 Arvados installations as documented at No longer stripping ‘:’ from strings in serialized database columns. We don't need to keep this task in the repo going forward.
This file defines "db:delete_old_job_logs". The jobs API was only every used in on-prem installations, and it became read-only with the 2.0 release. This job is not referenced from anywhere in the codebase or documentation. Remove.
Need to keep:¶
This file defines "db:delete_old_container_logs". This rake task is referenced in the configuration reference:
Containers: Logging: # When you run the db:delete_old_container_logs task, it will find # containers that have been finished for at least this many seconds, # and delete their stdout, stderr, arv-mount, crunch-run, and # crunchstat logs from the logs table. MaxAge: 720h
We still need this rake task, but we should replace it with a background task in controller, see #18863.
This file defines "db:check_long_lived_tokens" and "db:fix_long_lived_tokens" which are used to apply a new token lifetime policy to existing tokens, as documented at https://doc.arvados.org/admin/token-expiration-policy.html
This file defines "replay_job_log". It also includes lib/simulate_job_log.rb, which is not used anywhere else. This rake task is used in a workbench1 test, cf. test "live log charting from replayed log" in apps/workbench/test/integration/websockets_test.rb. We can remove this rake task when we finally retire workbench1. Ticket for that: #18862