{"action":"opened","issue":{"url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/452","labels_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/452/comments","events_url":"https://api.github.com/repos/roboconf/roboconf-platform/issues/452/events","html_url":"https://github.com/roboconf/roboconf-platform/issues/452","id":109501597,"number":452,"title":"Prevent the autonomic from executing a reaction twice","user":{"login":"vincent-zurczak","id":1104790,"avatar_url":"https://avatars.githubusercontent.com/u/1104790?v=3","gravatar_id":"","url":"https://api.github.com/users/vincent-zurczak","html_url":"https://github.com/vincent-zurczak","followers_url":"https://api.github.com/users/vincent-zurczak/followers","following_url":"https://api.github.com/users/vincent-zurczak/following{/other_user}","gists_url":"https://api.github.com/users/vincent-zurczak/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-zurczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-zurczak/subscriptions","organizations_url":"https://api.github.com/users/vincent-zurczak/orgs","repos_url":"https://api.github.com/users/vincent-zurczak/repos","events_url":"https://api.github.com/users/vincent-zurczak/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-zurczak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/roboconf/roboconf-platform/milestones/5","html_url":"https://github.com/roboconf/roboconf-platform/milestones/0.5","labels_url":"https://api.github.com/repos/roboconf/roboconf-platform/milestones/5/labels","id":1020893,"number":5,"title":"0.5","description":"The version 0.5 of the Roboconf platform","creator":{"login":"vincent-zurczak","id":1104790,"avatar_url":"https://avatars.githubusercontent.com/u/1104790?v=3","gravatar_id":"","url":"https://api.github.com/users/vincent-zurczak","html_url":"https://github.com/vincent-zurczak","followers_url":"https://api.github.com/users/vincent-zurczak/followers","following_url":"https://api.github.com/users/vincent-zurczak/following{/other_user}","gists_url":"https://api.github.com/users/vincent-zurczak/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-zurczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-zurczak/subscriptions","organizations_url":"https://api.github.com/users/vincent-zurczak/orgs","repos_url":"https://api.github.com/users/vincent-zurczak/repos","events_url":"https://api.github.com/users/vincent-zurczak/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-zurczak/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":50,"state":"open","created_at":"2015-03-13T20:07:47Z","updated_at":"2015-10-02T14:28:42Z","due_on":"2015-10-05T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-10-02T14:28:42Z","updated_at":"2015-10-02T14:28:42Z","closed_at":null,"body":"@cdeneux has experienced the following problem.\r\nHe defined a reaction that replicates a VM. The agent polls every 10 seconds. So, when the probe is *stimulated*, the agent sends information to replicate a service. If the replication takes more than 10 seconds (the poll delay), then more than one VM will be created by the autonomic.\r\n\r\nThis is not very efficient.\r\nWe can implement a control on reactions.\r\n\r\nIf a reaction (identified by its ID) is already in progress for a given agent, then we should ignore others.\r\nFor the **replicate-service**, it means we cannot create a new service if the previously created on is not **DEPLOYED_AND_STARTED**. In the same way, we cannot delete a service with **delete-service** if the **previously deleted** instance still exists. Again, these verifications have to be made per agent (the one that requested the reaction).\r\n\r\nThis should prevent some dumb behaviors."}}