Page MenuHomeSoftware Heritage

Update scheduler task names but keep backward compatibility

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



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

rDSCH Scheduling utilities
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

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 (
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.