Azure-storage-azcopy: Feature request: azcopy jobs kill

Created on 24 Sep 2019  路  3Comments  路  Source: Azure/azure-storage-azcopy

I have been trying to copy a set of files from a public Azure blob to local filesystem using azcopy. I've hit ctrl-c but it seems that the azcopy jobs still exist, a few being in progress. I would like to see a way to kill a job in progress.

Which version of the AzCopy was used?

Note: The version is visible when running AzCopy without any argument

10.2.1

Which platform are you using? (ex: Windows, Mac, Linux)

Linux

What command did you run?

Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.

What problem was encountered?

How can we reproduce the problem in the simplest way?

Have you found a mitigation/solution?

feature request

All 3 comments

Hi @wahalulu, we've added the "jobs rm" command and will ship it soon.

In the meantime, if you've killed the process by CTRL-C, the job will not be running. It's definition just still exists on disk, marked as InProgress since that was the last saved status before you killed the process. Job definitions on disk like that can be resumed with the existing resume command, or (in the upcoming 10.3 release) you can remove their definition (aka plan) files from disk using the command that Ze mentions.

Version 10.3 is now released, with the jobs rm command as listed above. To use, terminate the running job with CTRL-C, then use "jobs rm" if you want to clean up the plan (job definition) files that it left behind.

Was this page helpful?
0 / 5 - 0 ratings