Compare commits

..

No commits in common. "ef7c8be7b5515bd75a8398fefbe75341628d0a9d" and "164cd4fbb2690b93a47413dbebae860306af0c94" have entirely different histories.

3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
CREATE USER 'aauth'@'%' IDENTIFIED BY 'authpass'; CREATE USER 'aauth'@'%' IDENTIFIED BY 'authpass';
CREATE USER 'grafana'@'%' IDENTIFIED BY 'grafanapass'; CREATE USER 'grafana'@'%' IDENTIFIED BY 'grafanapass';
CREATE DATABASE alliance_auth CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci; CREATE DATABASE alliance_auth CHARACTER SET utf8mb4;
GRANT ALL PRIVILEGES ON alliance_auth.* TO 'aauth'@'%'; GRANT ALL PRIVILEGES ON alliance_auth.* TO 'aauth'@'%';
GRANT GRANT
SELECT, SELECT,

View File

@ -40,10 +40,10 @@ Please use the following approach to ensure your tasks are working properly with
Here is an example implementation of a task: Here is an example implementation of a task:
```python ```python
from allianceauth.services.hooks import get_extension_logger import logging
from celery import shared_task from celery import shared_task
logger = get_extension_logger(__name__) logger = logging.getLogger(__name__)
@shared_task @shared_task
@ -80,10 +80,10 @@ However, many long-running tasks consist of several smaller processes that need
Example implementation for a celery chain: Example implementation for a celery chain:
```python ```python
from allianceauth.services.hooks import get_extension_logger import logging
from celery import shared_task, chain from celery import shared_task, chain
logger = get_extension_logger(__name__) logger = logging.getLogger(__name__)
@shared_task @shared_task
@ -96,7 +96,7 @@ def long_runner():
my_tasks = list() my_tasks = list()
for _ in range(10): for _ in range(10):
task_signature = example.si() task_signature = example.si()
my_tasks.append(task_signature) my_task.append(task_signature)
chain(my_tasks).delay() chain(my_tasks).delay()
``` ```

View File

@ -246,7 +246,7 @@ and create them as follows, replacing `PASSWORD` with an actual secure password:
```sql ```sql
CREATE USER 'allianceserver'@'localhost' IDENTIFIED BY 'PASSWORD'; CREATE USER 'allianceserver'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE alliance_auth CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci; CREATE DATABASE alliance_auth CHARACTER SET utf8mb4;
GRANT ALL PRIVILEGES ON alliance_auth . * TO 'allianceserver'@'localhost'; GRANT ALL PRIVILEGES ON alliance_auth . * TO 'allianceserver'@'localhost';
``` ```