{"action":"created","issue":{"url":"https://api.github.com/repos/ncw/rclone/issues/1084","repository_url":"https://api.github.com/repos/ncw/rclone","labels_url":"https://api.github.com/repos/ncw/rclone/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/ncw/rclone/issues/1084/comments","events_url":"https://api.github.com/repos/ncw/rclone/issues/1084/events","html_url":"https://github.com/ncw/rclone/issues/1084","id":204401230,"number":1084,"title":"concurrent write to the single container","user":{"login":"vtolstov","id":481307,"avatar_url":"https://avatars.githubusercontent.com/u/481307?v=3","gravatar_id":"","url":"https://api.github.com/users/vtolstov","html_url":"https://github.com/vtolstov","followers_url":"https://api.github.com/users/vtolstov/followers","following_url":"https://api.github.com/users/vtolstov/following{/other_user}","gists_url":"https://api.github.com/users/vtolstov/gists{/gist_id}","starred_url":"https://api.github.com/users/vtolstov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtolstov/subscriptions","organizations_url":"https://api.github.com/users/vtolstov/orgs","repos_url":"https://api.github.com/users/vtolstov/repos","events_url":"https://api.github.com/users/vtolstov/events{/privacy}","received_events_url":"https://api.github.com/users/vtolstov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-31T19:33:12Z","updated_at":"2017-01-31T20:31:39Z","closed_at":null,"body":"Does rclone have some lock marker or locking system to solve concurrent writing to the single container?\r\nFor example i have CI system that uses files from openstack swift and modifies some of them. After that i need to deploy old+new files to this container.\r\nMy problem than sometimes i have 3-4 concurrent builds that sometimes can write to this repo in the same time (run rclone with sync mode to destination container) does it possible to create some lock and remove it after clone finishes or exits?"},"comment":{"url":"https://api.github.com/repos/ncw/rclone/issues/comments/276482970","html_url":"https://github.com/ncw/rclone/issues/1084#issuecomment-276482970","issue_url":"https://api.github.com/repos/ncw/rclone/issues/1084","id":276482970,"user":{"login":"vtolstov","id":481307,"avatar_url":"https://avatars.githubusercontent.com/u/481307?v=3","gravatar_id":"","url":"https://api.github.com/users/vtolstov","html_url":"https://github.com/vtolstov","followers_url":"https://api.github.com/users/vtolstov/followers","following_url":"https://api.github.com/users/vtolstov/following{/other_user}","gists_url":"https://api.github.com/users/vtolstov/gists{/gist_id}","starred_url":"https://api.github.com/users/vtolstov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtolstov/subscriptions","organizations_url":"https://api.github.com/users/vtolstov/orgs","repos_url":"https://api.github.com/users/vtolstov/repos","events_url":"https://api.github.com/users/vtolstov/events{/privacy}","received_events_url":"https://api.github.com/users/vtolstov/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T20:31:39Z","updated_at":"2017-01-31T20:31:39Z","body":"I can see easy method like - when start create lock file with timestamp, each heartbeat interval update this file. If file exists and heartbeat interval expired - then lock is stale and can be deleted.\r\n"}}
{"actor":{"display_login":"vtolstov"}}