home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 522334771 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • simonw 2
  • nryberg 1

author_association 2

  • OWNER 2
  • NONE 1

issue 1

  • Publish to Heroku is broken: "WARNING: You must pass the application as an import string to enable 'reload' or 'workers" · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
620841496 https://github.com/simonw/datasette/issues/633#issuecomment-620841496 https://api.github.com/repos/simonw/datasette/issues/633 MDEyOklzc3VlQ29tbWVudDYyMDg0MTQ5Ng== nryberg 46165 2020-04-28T20:37:50Z 2020-04-28T20:37:50Z NONE

Using the Heroku web interface, you can set the WEB_CONCURRENCY = 1

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Publish to Heroku is broken: "WARNING: You must pass the application as an import string to enable 'reload' or 'workers" 522334771  
553483633 https://github.com/simonw/datasette/issues/633#issuecomment-553483633 https://api.github.com/repos/simonw/datasette/issues/633 MDEyOklzc3VlQ29tbWVudDU1MzQ4MzYzMw== simonw 9599 2019-11-13T16:36:02Z 2019-11-13T16:36:35Z OWNER

Short term fix: set --workers=1 when publishing with Heroku. Or even easier - set WEB_CONCURRENCY to 1.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Publish to Heroku is broken: "WARNING: You must pass the application as an import string to enable 'reload' or 'workers" 522334771  
553483419 https://github.com/simonw/datasette/issues/633#issuecomment-553483419 https://api.github.com/repos/simonw/datasette/issues/633 MDEyOklzc3VlQ29tbWVudDU1MzQ4MzQxOQ== simonw 9599 2019-11-13T16:35:34Z 2019-11-13T16:35:34Z OWNER

The problem is this code in uvicorn: https://github.com/encode/uvicorn/blob/020dd085a0a5b609f14ddd2b36fc0a97ba4df019/uvicorn/main.py#L297-L302 python if (config.reload or config.workers > 1) and not isinstance(app, str): logger = logging.getLogger("uvicorn.error") logger.warn( "You must pass the application as an import string to enable 'reload' or 'workers'." ) sys.exit(1) From this commit 4 days ago: https://github.com/encode/uvicorn/commit/b034f7a136c5e57a33ffd10ce2404cc1faee9033 - see Uvicorn https://github.com/encode/uvicorn/issues/478 and https://github.com/encode/uvicorn/pull/481

This is breaking because --workers "Defaults to the $WEB_CONCURRENCY environment variable if available" - and it turns out on Heroku WEB_CONCURRENCY is set to 2 by default!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Publish to Heroku is broken: "WARNING: You must pass the application as an import string to enable 'reload' or 'workers" 522334771  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 27.745ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows