Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cancel the job #4

Closed
retifrav opened this issue Mar 25, 2020 · 3 comments
Closed

Cannot cancel the job #4

retifrav opened this issue Mar 25, 2020 · 3 comments
Assignees
Labels
bug Something isn't working upstream issue The bug in the rclone itself

Comments

@retifrav
Copy link
Owner

List of current transfers:

http://IP-ADDRESS:PORT/core/stats

{
    ...
    "transferring": [
        {
            "bytes": 212856832,
            "eta": 93,
            "group": "job/95180",
            "name": "2019-09-26-raspbian-buster-lite.zip",
            "percentage": 46,
            "size": 454279954,
            "speed": 2750878.5798009364,
            "speedAvg": 2595620.440967448
        },
        {
            "bytes": 191885312,
            "eta": 97,
            "group": "job/95191",
            "name": "some-file.mkv",
            "percentage": 42,
            "size": 446388267,
            "speed": 2537641.0826345356,
            "speedAvg": 2609023.91652754
        }
    ],
    ...
}

Want to cancel some-file.mkv, so the jobid is 95191:

http://IP-ADDRESS:PORT/job/stop
{"jobid":"95191"}

Request is executed successfully, but the job is not cancelled.

I can also check its status:

http://IP-ADDRESS:PORT/job/status jobid="95191"

{
    "duration": 0,
    "endTime": "0001-01-01T00:00:00Z",
    "error": "",
    "finished": false,
    "group": "job/95191",
    "id": 95191,
    "output": null,
    "startTime": "2020-03-25T21:09:49.825654778Z",
    "success": false
}

What's weird is that on localhost (Windows 10 x64) it works fine, so the job gets cancelled. But when I do that on a remote host (Linux ARM), it does not.

@retifrav retifrav added the bug Something isn't working label Mar 25, 2020
@retifrav retifrav self-assigned this Mar 25, 2020
@retifrav
Copy link
Owner Author

retifrav commented Apr 1, 2020

Asked the question at the rclone forum.

@retifrav
Copy link
Owner Author

retifrav commented Apr 1, 2020

Some backends do not support "context propagation": rclone/rclone#3257
So we can only wait for this to be implemented for all the backends.

@retifrav retifrav added not related upstream issue The bug in the rclone itself and removed not related labels Apr 1, 2020
@retifrav
Copy link
Owner Author

retifrav commented Sep 17, 2022

Looks like it has been fixed! I could successfully cancel an SFTP transfer with rclone v1.58, and most likely the fix was already available even in earlier versions (since v1.55, as it seems), as the upstream issue has been closed on 03.02.2021.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream issue The bug in the rclone itself
Projects
None yet
Development

No branches or pull requests

1 participant