René's URL Explorer Experiment


Title: QueueTimer keeps Node process from terminating gracefully · Issue #42 · exceptionless/Exceptionless.JavaScript · GitHub

Open Graph Title: QueueTimer keeps Node process from terminating gracefully · Issue #42 · exceptionless/Exceptionless.JavaScript

X Title: QueueTimer keeps Node process from terminating gracefully · Issue #42 · exceptionless/Exceptionless.JavaScript

Description: var client = require('exceptionless').ExceptionlessClient.default; client.config.apiKey = "***"; client.config.useDebugLogger(); This program will run and exit as expected. No events are submitted. Console output: [info] Exceptionless: P...

Open Graph Description: var client = require('exceptionless').ExceptionlessClient.default; client.config.apiKey = "***"; client.config.useDebugLogger(); This program will run and exit as expected. No events are submitted....

X Description: var client = require('exceptionless').ExceptionlessClient.default; client.config.apiKey = "***"; client.config.useDebugLogger(); This program will run and exit as expected. No eve...

Opengraph URL: https://github.com/exceptionless/Exceptionless.JavaScript/issues/42

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QueueTimer keeps Node process from terminating gracefully","articleBody":"``` js\nvar client = require('exceptionless').ExceptionlessClient.default;\nclient.config.apiKey = \"***\";\nclient.config.useDebugLogger();\n```\n\nThis program will run and exit as expected. No events are submitted. Console output:\n\n```\n[info] Exceptionless: Processing queue...\nfranks-macbook:Exceptionless.JavaScript Frank$ \n```\n\nWhereas, if we modify the code to submit an event:\n\n``` js\nvar client = require('exceptionless').ExceptionlessClient.default;\nclient.config.apiKey = \"***\";\nclient.config.useDebugLogger();\nclient.submitLog('Test');\n```\n\nThis program will run forever, unless you terminate it by sending SIGINT:\n\n```\n[info] Exceptionless: Enqueuing event: 1456470547394 type=log \n[info] Exceptionless: Processing queue...\n[info] Exceptionless: Sending 1 events to https://collector.exceptionless.io.\n[info] Exceptionless: Sent 1 events.\n[info] Exceptionless: Finished processing queue.\n[info] Exceptionless: Processing queue...\n[info] Exceptionless: Processing queue...\n[info] Exceptionless: Processing queue...\n```\n\nIf we `npm install wtfnode` and call `.dump()`, it clearly shows what's going on: \n\n```\n[WTF Node?] open handles:\n- Sockets:\n  - undefined:undefined -\u003e undefined:undefined\n    - Listeners:\n  - undefined:undefined -\u003e undefined:undefined\n    - Listeners:\n- Timers:\n  - (10000 ~ 10 s) wrapper @ /Users/Frank/Entw..../exceptionless.node.js:242\n```\n\nFrom [Node docs](http://nodejs.org/en/about/): \n\n\u003e In Node there is no such start-the-event-loop call. Node simply enters the event loop after executing the input script. Node exits the event loop when there are no more callbacks to perform. \n\nSo, our timer is the last single callback in Node's event loop and therefore blocks it from exiting. This is probably not an issue for service-like applications, but it sucks for console tools or anything that should just exit when the work is finished.\n\nThoughts:\n- Can we use a shorter timespan for the timer in combination with a `lastEventTimestamp` field?\n- Can we leverage the same private API that `wtfnode` uses to figure out if we are the single reason that the process is still running?\n- How long do we want to wait for events to be submitted if the program has no work to do otherwise, before exiting? Should it wait forever if events cannot be submitted due to network problems? Should it make a difference between InMemory and LocalStorage?\n","author":{"url":"https://github.com/frankebersoll","@type":"Person","name":"frankebersoll"},"datePublished":"2016-02-26T07:23:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/42/Exceptionless.JavaScript/issues/42"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a3c88dae-1714-0d2f-239f-4c94fe521557
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAAC:1462F2:433641:5F5E38:697245BF
html-safe-noncef54d42dd007b054702873ece7f544f3d4248dd8fb1e5f39769cb09aaadb663e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUFDOjE0NjJGMjo0MzM2NDE6NUY1RTM4OjY5NzI0NUJGIiwidmlzaXRvcl9pZCI6Ijg0NTQ2NDU4NzI3MjQxNjYwNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac37fbff0210ec83033cf3945b90d12acd904a1ed56254be6d307efd7b05e86b3e
hovercard-subject-tagissue:136618145
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/exceptionless/Exceptionless.JavaScript/42/issue_layout
twitter:imagehttps://opengraph.githubassets.com/48e5220655a40d96e1989c0846c36f4f115719481eb7ebaed759ea0cf1e99fc2/exceptionless/Exceptionless.JavaScript/issues/42
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/48e5220655a40d96e1989c0846c36f4f115719481eb7ebaed759ea0cf1e99fc2/exceptionless/Exceptionless.JavaScript/issues/42
og:image:altvar client = require('exceptionless').ExceptionlessClient.default; client.config.apiKey = "***"; client.config.useDebugLogger(); This program will run and exit as expected. No events are submitted....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefrankebersoll
hostnamegithub.com
expected-hostnamegithub.com
None2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11
turbo-cache-controlno-preview
go-importgithub.com/exceptionless/Exceptionless.JavaScript git https://github.com/exceptionless/Exceptionless.JavaScript.git
octolytics-dimension-user_id5912469
octolytics-dimension-user_loginexceptionless
octolytics-dimension-repository_id29558878
octolytics-dimension-repository_nwoexceptionless/Exceptionless.JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29558878
octolytics-dimension-repository_network_root_nwoexceptionless/Exceptionless.JavaScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release584fea6daacd0ba6f8dbec869937910ee0ae2e64
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fexceptionless%2FExceptionless.JavaScript%2Fissues%2F42
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fexceptionless%2FExceptionless.JavaScript%2Fissues%2F42
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=exceptionless%2FExceptionless.JavaScript
Reloadhttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42
Reloadhttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42
Reloadhttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42
exceptionless https://github.com/exceptionless
Exceptionless.JavaScripthttps://github.com/exceptionless/Exceptionless.JavaScript
Please reload this pagehttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42
Notifications https://github.com/login?return_to=%2Fexceptionless%2FExceptionless.JavaScript
Fork 22 https://github.com/login?return_to=%2Fexceptionless%2FExceptionless.JavaScript
Star 60 https://github.com/login?return_to=%2Fexceptionless%2FExceptionless.JavaScript
Code https://github.com/exceptionless/Exceptionless.JavaScript
Issues 0 https://github.com/exceptionless/Exceptionless.JavaScript/issues
Pull requests 0 https://github.com/exceptionless/Exceptionless.JavaScript/pulls
Actions https://github.com/exceptionless/Exceptionless.JavaScript/actions
Models https://github.com/exceptionless/Exceptionless.JavaScript/models
Wiki https://github.com/exceptionless/Exceptionless.JavaScript/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/exceptionless/Exceptionless.JavaScript/security
Please reload this pagehttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42
Insights https://github.com/exceptionless/Exceptionless.JavaScript/pulse
Code https://github.com/exceptionless/Exceptionless.JavaScript
Issues https://github.com/exceptionless/Exceptionless.JavaScript/issues
Pull requests https://github.com/exceptionless/Exceptionless.JavaScript/pulls
Actions https://github.com/exceptionless/Exceptionless.JavaScript/actions
Models https://github.com/exceptionless/Exceptionless.JavaScript/models
Wiki https://github.com/exceptionless/Exceptionless.JavaScript/wiki
Security https://github.com/exceptionless/Exceptionless.JavaScript/security
Insights https://github.com/exceptionless/Exceptionless.JavaScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/exceptionless/Exceptionless.JavaScript/issues/42
New issuehttps://github.com/login?return_to=https://github.com/exceptionless/Exceptionless.JavaScript/issues/42
QueueTimer keeps Node process from terminating gracefullyhttps://github.com/exceptionless/Exceptionless.JavaScript/issues/42#top
bughttps://github.com/exceptionless/Exceptionless.JavaScript/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/frankebersoll
https://github.com/frankebersoll
frankebersollhttps://github.com/frankebersoll
on Feb 26, 2016https://github.com/exceptionless/Exceptionless.JavaScript/issues/42#issue-136618145
Node docshttp://nodejs.org/en/about/
bughttps://github.com/exceptionless/Exceptionless.JavaScript/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.