Title: Final Done Task Repeating · Issue #10 · balena/python-pqueue · GitHub
Open Graph Title: Final Done Task Repeating · Issue #10 · balena/python-pqueue
X Title: Final Done Task Repeating · Issue #10 · balena/python-pqueue
Description: With the following example, if I run it and then comment out the put loop and then run it again, I get 99 printed. def worker(): while True: try: item = q.get() print item except: pass finally: q.task_done() for i in range(3): t = Thread...
Open Graph Description: With the following example, if I run it and then comment out the put loop and then run it again, I get 99 printed. def worker(): while True: try: item = q.get() print item except: pass finally: q.t...
X Description: With the following example, if I run it and then comment out the put loop and then run it again, I get 99 printed. def worker(): while True: try: item = q.get() print item except: pass finally: q.t...
Opengraph URL: https://github.com/balena/python-pqueue/issues/10
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Final Done Task Repeating","articleBody":"With the following example, if I run it and then comment out the `put` loop and then run it again, I get 99 printed.\r\n\r\n```\r\ndef worker():\r\n while True:\r\n try:\r\n item = q.get()\r\n print item\r\n except:\r\n pass\r\n finally:\r\n q.task_done()\r\n\r\nfor i in range(3):\r\n t = Thread(target=worker)\r\n t.daemon = True\r\n t.start()\r\n\r\nfor item in range(100):\r\n q.put(item)\r\n```","author":{"url":"https://github.com/graingerkid","@type":"Person","name":"graingerkid"},"datePublished":"2017-04-25T13:16:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/10/python-pqueue/issues/10"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:486d8703-1eeb-30aa-5947-a2bacc79f393 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8332:12B606:656787:836D1F:698D5D41 |
| html-safe-nonce | 73a44547b109a399115d3876e1126c122839b3176951ab69e21f3f4fd3a1c7f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzMyOjEyQjYwNjo2NTY3ODc6ODM2RDFGOjY5OEQ1RDQxIiwidmlzaXRvcl9pZCI6IjkwNzU3NTA5MjAyODU2NzQ4MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8640e9bb971cf5ecbee22a903d6e3a1f58260886af7367f30956ff38f2598021 |
| hovercard-subject-tag | issue:224134018 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/balena/python-pqueue/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fda069c482b131d125f62ed0d78842bcd948799439b2749a5e12691862335f18/balena/python-pqueue/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fda069c482b131d125f62ed0d78842bcd948799439b2749a5e12691862335f18/balena/python-pqueue/issues/10 |
| og:image:alt | With the following example, if I run it and then comment out the put loop and then run it again, I get 99 printed. def worker(): while True: try: item = q.get() print item except: pass finally: q.t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | graingerkid |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/balena/python-pqueue git https://github.com/balena/python-pqueue.git |
| octolytics-dimension-user_id | 8530651 |
| octolytics-dimension-user_login | balena |
| octolytics-dimension-repository_id | 34255914 |
| octolytics-dimension-repository_nwo | balena/python-pqueue |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34255914 |
| octolytics-dimension-repository_network_root_nwo | balena/python-pqueue |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a95a17cc440c14d4fcddc0641bc1136fa8d908f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width