{"action":"created","issue":{"url":"https://api.github.com/repos/duplicati/duplicati/issues/1088","labels_url":"https://api.github.com/repos/duplicati/duplicati/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/duplicati/duplicati/issues/1088/comments","events_url":"https://api.github.com/repos/duplicati/duplicati/issues/1088/events","html_url":"https://github.com/duplicati/duplicati/issues/1088","id":40140736,"number":1088,"title":"\"pause\" doesn't stop the upload","user":{"login":"agrajaghh","id":5296073,"avatar_url":"https://avatars.githubusercontent.com/u/5296073?v=3","gravatar_id":"","url":"https://api.github.com/users/agrajaghh","html_url":"https://github.com/agrajaghh","followers_url":"https://api.github.com/users/agrajaghh/followers","following_url":"https://api.github.com/users/agrajaghh/following{/other_user}","gists_url":"https://api.github.com/users/agrajaghh/gists{/gist_id}","starred_url":"https://api.github.com/users/agrajaghh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrajaghh/subscriptions","organizations_url":"https://api.github.com/users/agrajaghh/orgs","repos_url":"https://api.github.com/users/agrajaghh/repos","events_url":"https://api.github.com/users/agrajaghh/events{/privacy}","received_events_url":"https://api.github.com/users/agrajaghh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-08-13T10:18:46Z","updated_at":"2015-01-20T02:42:26Z","closed_at":null,"body":"When I click the pause button in the GUI or at the tray icon, duplicati still continues to upload. \r\n\r\nI'm running Duplicati 2.0.0.57- 2.0_preview_2014-08-12 on Windows 7 and Windows 8.1.\r\n\r\nI guess it just doesn't start new jobs, but it would be good to be able to pause running backups as well. Sometimes you need the bandwith for other things (sending a big email, gaming, ...)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/duplicati/duplicati/issues/comments/70596083","html_url":"https://github.com/duplicati/duplicati/issues/1088#issuecomment-70596083","issue_url":"https://api.github.com/repos/duplicati/duplicati/issues/1088","id":70596083,"user":{"login":"rocifier","id":1772304,"avatar_url":"https://avatars.githubusercontent.com/u/1772304?v=3","gravatar_id":"","url":"https://api.github.com/users/rocifier","html_url":"https://github.com/rocifier","followers_url":"https://api.github.com/users/rocifier/followers","following_url":"https://api.github.com/users/rocifier/following{/other_user}","gists_url":"https://api.github.com/users/rocifier/gists{/gist_id}","starred_url":"https://api.github.com/users/rocifier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocifier/subscriptions","organizations_url":"https://api.github.com/users/rocifier/orgs","repos_url":"https://api.github.com/users/rocifier/repos","events_url":"https://api.github.com/users/rocifier/events{/privacy}","received_events_url":"https://api.github.com/users/rocifier/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T02:42:26Z","updated_at":"2015-01-20T02:42:26Z","body":"I think I see the issue that is happening here. The project code everywhere is pausing correctly. However, (at least for the S3 backend), we have the line:\r\n    PutObjectResponse objectAddResponse = m_client.PutObject(objectAddRequest);\r\nWhich has already spawned its own background worker thread to upload the file. If the owning thread is paused, then it doesn't mean that the internal thread in AWSSDK is paused, and so the file completes upload in the background so long as there are no exceptions. I need to figure out a way to cancel this background AWS transfer, then look into the other backend systems."}}