{"action":"created","issue":{"url":"https://api.github.com/repos/jwkvam/bowtie/issues/121","repository_url":"https://api.github.com/repos/jwkvam/bowtie","labels_url":"https://api.github.com/repos/jwkvam/bowtie/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/jwkvam/bowtie/issues/121/comments","events_url":"https://api.github.com/repos/jwkvam/bowtie/issues/121/events","html_url":"https://github.com/jwkvam/bowtie/issues/121","id":224511798,"number":121,"title":"Error with cache.load","user":{"login":"rsm5139","id":4633771,"avatar_url":"https://avatars1.githubusercontent.com/u/4633771?v=3","gravatar_id":"","url":"https://api.github.com/users/rsm5139","html_url":"https://github.com/rsm5139","followers_url":"https://api.github.com/users/rsm5139/followers","following_url":"https://api.github.com/users/rsm5139/following{/other_user}","gists_url":"https://api.github.com/users/rsm5139/gists{/gist_id}","starred_url":"https://api.github.com/users/rsm5139/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsm5139/subscriptions","organizations_url":"https://api.github.com/users/rsm5139/orgs","repos_url":"https://api.github.com/users/rsm5139/repos","events_url":"https://api.github.com/users/rsm5139/events{/privacy}","received_events_url":"https://api.github.com/users/rsm5139/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-26T15:38:20Z","updated_at":"2017-04-26T22:16:16Z","closed_at":null,"body":"I'm getting an error when I use `bowtie.cache.load`. As far as I can tell, the correct value is loading and everything functions normally. I'm not sure where this error comes from. I'm also using `Schedule`, but I managed to get that to work fine when not loading from the cache. \r\n\r\nAs I make more changes, I may be able to give more details about this.\r\n\r\n```\r\n  File \"/Users/rsm5139/anaconda3/envs/learning-bowtie/lib/python3.6/site-packages/eventlet/greenthread.py\", line 218, in main\r\n    result = function(*args, **kwargs)\r\n  File \"./build/src/server.py\", line 59, in foo\r\n    func()\r\n  File \"/Users/rsm5139/Git/learning-bowtie/step_1.py\", line 23, in timed_event\r\n    ticker = cache.load('scheduled')\r\n  File \"/Users/rsm5139/anaconda3/envs/learning-bowtie/lib/python3.6/site-packages/bowtie/cache.py\", line 58, in load\r\n    return msgpack.unpackb(bytes(event.get(timeout=10)), encoding='utf8')\r\n  File \"/Users/rsm5139/anaconda3/envs/learning-bowtie/lib/python3.6/site-packages/eventlet/queue.py\", line 313, in get\r\n    return waiter.wait()\r\n  File \"/Users/rsm5139/anaconda3/envs/learning-bowtie/lib/python3.6/site-packages/eventlet/queue.py\", line 141, in wait\r\n    return get_hub().switch()\r\n  File \"/Users/rsm5139/anaconda3/envs/learning-bowtie/lib/python3.6/site-packages/eventlet/hubs/hub.py\", line 295, in switch\r\n    return self.greenlet.switch()\r\nqueue.Empty\r\n^Cwsgi exiting\r\n```"},"comment":{"url":"https://api.github.com/repos/jwkvam/bowtie/issues/comments/297557265","html_url":"https://github.com/jwkvam/bowtie/issues/121#issuecomment-297557265","issue_url":"https://api.github.com/repos/jwkvam/bowtie/issues/121","id":297557265,"user":{"login":"jwkvam","id":86304,"avatar_url":"https://avatars3.githubusercontent.com/u/86304?v=3","gravatar_id":"","url":"https://api.github.com/users/jwkvam","html_url":"https://github.com/jwkvam","followers_url":"https://api.github.com/users/jwkvam/followers","following_url":"https://api.github.com/users/jwkvam/following{/other_user}","gists_url":"https://api.github.com/users/jwkvam/gists{/gist_id}","starred_url":"https://api.github.com/users/jwkvam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwkvam/subscriptions","organizations_url":"https://api.github.com/users/jwkvam/orgs","repos_url":"https://api.github.com/users/jwkvam/repos","events_url":"https://api.github.com/users/jwkvam/events{/privacy}","received_events_url":"https://api.github.com/users/jwkvam/received_events","type":"User","site_admin":false},"created_at":"2017-04-26T22:16:16Z","updated_at":"2017-04-26T22:16:16Z","body":"I like how you are stress testing many of bowtie's features :)\r\n\r\nTo be clear, the cache itself is not shared. The values will be the same because the scheduled function gets run for all users. At least that's what I **think**. Backtracking a little, actually I think this should work if you only have one client.\r\n\r\nUnfortunately, I think what you are trying to do isn't possible right now. Bowtie needs the feature I was describing above, so it can address clients individually even when initiated by a scheduled task.\r\n\r\nSadly, sessions and cookies are not viable in my experience. Before I built the cache mechanism I was considering that and asked the flask socketio maintainer about it.\r\n\r\nhttps://github.com/miguelgrinberg/Flask-SocketIO/issues/422"}}
{"actor":{"display_login":"jwkvam"}}