Page MenuHomeSoftware Heritage

Update scheduler task names but keep backward compatibility
ClosedPublic

Authored by anlambert on May 2 2019, 6:05 PM.

Details

Summary

Update scheduler task names with the naming scheme proposed in T1508.

In order to keep backward compatibility for swh components that are still
using the old names, rows that were previously contained in the task_type
table are still inserted.

Diff Detail

Repository
rDSCH Scheduling utilities
Branch
update-task-names
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5572
Build 7587: tox-on-jenkinsJenkins
Build 7586: arc lint + arc unit

Event Timeline

Update: Ensure all columns get copied in swh_add_backward_compatible_task_name

Is this to be ran on production?

@olasd already add new task names for the loaders in production (https://forge.softwareheritage.org/T1508#31266).
This file is executed when starting the swh-scheduler-apiservice in docker-compose so this update is mainly dedicated
to that development environment.

This revision is now accepted and ready to land.May 6 2019, 11:36 AM
This revision was automatically updated to reflect the committed changes.

Landed in master. I also pushed a new tag for swh-scheduler as swh-web has also been migrated to the new task names for the save code now feature.
Without the new scheduler tag, the save code now feature will be broken when using the docker-compose environment.