annotate .eslintrc.js @ 8829:01cb988e82a5

celery: celery-run should only initialize app and sqlalchemy after workers have been forked If app and SqlAlchemy were initialized before launching celery, the forked workers would inherit the database connection ... and that doesn't work. This could be handled by disposing the engine after forking the worker or before each task ... but it remains unnecessary and wrong to initialize the engine early when it isn't used, and then fork it.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 01 Jan 2021 18:04:16 +0100
parents 4d36432bf705
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8254
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
1 module.exports = {
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
2 "env": {
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
3 "browser": true,
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
4 "es6": true,
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
5 "jquery": true
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
6 },
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
7 "extends": "eslint:recommended",
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
8 "globals": {
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
9 "Atomics": "readonly",
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
10 "SharedArrayBuffer": "readonly"
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
11 },
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
12 "parserOptions": {
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
13 "ecmaVersion": 2018,
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
14 "sourceType": "module"
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
15 },
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
16 "plugins": [
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
17 "html"
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
18 ],
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
19 "rules": {
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
20 }
4d36432bf705 eslint: install eslint with front-end so it can be run manually
Mads Kiilerich <mads@kiilerich.com>
parents:
diff changeset
21 };