{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3400","repository_url":"https://api.github.com/repos/Azure/azure-functions-host","labels_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3400/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3400/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3400/events","html_url":"https://github.com/Azure/azure-functions-host/issues/3400","id":357423821,"node_id":"MDU6SXNzdWUzNTc0MjM4MjE=","number":3400,"title":"[LanguageWorkers]Implement function reload","user":{"login":"mhoeger","id":8888531,"node_id":"MDQ6VXNlcjg4ODg1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8888531?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoeger","html_url":"https://github.com/mhoeger","followers_url":"https://api.github.com/users/mhoeger/followers","following_url":"https://api.github.com/users/mhoeger/following{/other_user}","gists_url":"https://api.github.com/users/mhoeger/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoeger/subscriptions","organizations_url":"https://api.github.com/users/mhoeger/orgs","repos_url":"https://api.github.com/users/mhoeger/repos","events_url":"https://api.github.com/users/mhoeger/events{/privacy}","received_events_url":"https://api.github.com/users/mhoeger/received_events","type":"User","site_admin":false},"labels":[{"id":556214786,"node_id":"MDU6TGFiZWw1NTYyMTQ3ODY=","url":"https://api.github.com/repos/Azure/azure-functions-host/labels/feature:language-extensibility","name":"feature:language-extensibility","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"pragnagopa","id":1874279,"node_id":"MDQ6VXNlcjE4NzQyNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1874279?v=4","gravatar_id":"","url":"https://api.github.com/users/pragnagopa","html_url":"https://github.com/pragnagopa","followers_url":"https://api.github.com/users/pragnagopa/followers","following_url":"https://api.github.com/users/pragnagopa/following{/other_user}","gists_url":"https://api.github.com/users/pragnagopa/gists{/gist_id}","starred_url":"https://api.github.com/users/pragnagopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragnagopa/subscriptions","organizations_url":"https://api.github.com/users/pragnagopa/orgs","repos_url":"https://api.github.com/users/pragnagopa/repos","events_url":"https://api.github.com/users/pragnagopa/events{/privacy}","received_events_url":"https://api.github.com/users/pragnagopa/received_events","type":"User","site_admin":false},"assignees":[{"login":"pragnagopa","id":1874279,"node_id":"MDQ6VXNlcjE4NzQyNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1874279?v=4","gravatar_id":"","url":"https://api.github.com/users/pragnagopa","html_url":"https://github.com/pragnagopa","followers_url":"https://api.github.com/users/pragnagopa/followers","following_url":"https://api.github.com/users/pragnagopa/following{/other_user}","gists_url":"https://api.github.com/users/pragnagopa/gists{/gist_id}","starred_url":"https://api.github.com/users/pragnagopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragnagopa/subscriptions","organizations_url":"https://api.github.com/users/pragnagopa/orgs","repos_url":"https://api.github.com/users/pragnagopa/repos","events_url":"https://api.github.com/users/pragnagopa/events{/privacy}","received_events_url":"https://api.github.com/users/pragnagopa/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-09-05T22:14:09Z","updated_at":"2018-09-07T22:27:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We are too aggressive about restarting the language worker processes (for example, on re-loading user code). Can lead to confusing log messages about `node exited with code -1`\r\n\r\n-----\r\nFirst reported: https://github.com/Azure/azure-functions-core-tools/issues/689\r\n_Per @blueelvis:_\r\nHi!\r\n\r\nHost Version - `2.0.12050.0`\r\nRunning I am starting the function and after starting, I get the following in the logs -\r\n\r\n```\r\n[02-09-2018 13:43:04] Generating 4 job function(s)\r\n[02-09-2018 13:43:04] Found the following functions:\r\n[02-09-2018 13:43:04] Host.Functions.damage-assessment-bot\r\n[02-09-2018 13:43:04] Host.Functions.messages\r\n[02-09-2018 13:43:04] Host.Functions.some-function\r\n[02-09-2018 13:43:04] Host.Functions.test\r\n[02-09-2018 13:43:04]\r\n[02-09-2018 13:43:04] Host initialized (86ms)\r\n[02-09-2018 13:43:04] Host started (88ms)\r\n[02-09-2018 13:43:04] Job host started\r\n[02-09-2018 13:43:04] Stopping JobHost\r\n[02-09-2018 13:43:04] Job host stopped\r\ninfo: Host.General[0]\r\n      Script host restarted.\r\n[02-09-2018 13:43:04] Language Worker Process exited.\r\n[02-09-2018 13:43:04] node exited with code -1\r\n .\r\n[02-09-2018 13:43:04] Worker 6cdf2495-5568-40ee-ac26-a973a2423e99 connecting on 127.0.0.1:22499 []\r\n[02-09-2018 13:43:05] Path must be a string. Received undefined\r\n[02-09-2018 13:43:09] Host lock lease acquired by instance ID '000000000000000000000000571B63F6'.\r\n```\r\n\r\nThe Function starts working fine but any idea why am I getting that the job host was stopped and node exited with code -1?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/comments/419582802","html_url":"https://github.com/Azure/azure-functions-host/issues/3400#issuecomment-419582802","issue_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3400","id":419582802,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTU4MjgwMg==","user":{"login":"mhoeger","id":8888531,"node_id":"MDQ6VXNlcjg4ODg1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8888531?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoeger","html_url":"https://github.com/mhoeger","followers_url":"https://api.github.com/users/mhoeger/followers","following_url":"https://api.github.com/users/mhoeger/following{/other_user}","gists_url":"https://api.github.com/users/mhoeger/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoeger/subscriptions","organizations_url":"https://api.github.com/users/mhoeger/orgs","repos_url":"https://api.github.com/users/mhoeger/repos","events_url":"https://api.github.com/users/mhoeger/events{/privacy}","received_events_url":"https://api.github.com/users/mhoeger/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T22:27:58Z","updated_at":"2018-09-07T22:27:58Z","author_association":"CONTRIBUTOR","body":"@pragnagopa - without this, i also think that development is changed. meaning you can't keep the same func.exe running while changing and updating the function. i think we may want to prioritize this more?"}}
{"actor":{"display_login":"mhoeger"}}