EMCECS / ecs-sync

ecs-sync is a bulk copy utility that can move data between various systems in parallel
Apache License 2.0
61 stars 22 forks source link

Enhancement Request : be able to archive a job from ecs-sync-ctl #79

Closed lriva94 closed 3 years ago

lriva94 commented 3 years ago

Currently in ecs-sync 3.4, it is only possible to archive a job through the GUI. As generally I only have access to the ecs-sync servers through CLI, it would be more efficient to have the possibility to archive jobs though CLI, like ecs-sync-ctl --archive . It is because the list of jobs displayed and memorized cannot be more that 10, unless there is a config file where this value of 10 may be increased.

twincitiesguy commented 3 years ago

Archiving a job will collect summary, error report, and configuration data and save them for reference later, then delete the job from the ecs-sync active job list. However, the "archive" portion of that function is specific to the UI application and is not baked into the ecs-sync service.

If you have reached the limit of 10 active jobs and are not using the UI, then you need to delete a completed job to free up a slot for a new job (ecs-sync-ctl --delete <job-id>). If you want to preserve the job data for later reference, you'll have to do that yourself before deleting, since that is not a function of the service.

You can retrieve the same information that is archived by the UI with the following commands: Command on sync VM Description
ecs-sync-ctl --status <job-id> Retrieves human-readable job status summary
curl http://localhost:9200/job/<job-id>/progress Retrieves job status summary in XML
curl http://localhost:9200/job/<job-id>/errors.csv Retrieves error report in CSV
curl http://localhost:9200/job/<job-id> Retrieves job configuration in XML