mirror of https://github.com/peter4431/rq.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* Update cli.py to support custom loggers
Allows a config.py file (via rq worker --config) to support things like this for logfmt logging:
DICT_CONFIG = {
"version": 1,
"formatters": {"logfmt": {
"()": "logfmter.Logfmter",
"keys": ["level","when","pid"],
"mapping": {"level":"levelname","when":"asctime","pid":"process"},
"datefmt": "%Y-%m-%dT%H:%M:%S%z"
}},
"handlers": {"console": {"class": "logging.StreamHandler","formatter": "logfmt" }},
"loggers": {
"root": {"handlers":["console"], "level": "INFO"},
"rq": {"handlers":["console"], "level": "INFO", "propagate": False},
}
}
* added simple test and documentation for DICT_CONFIG
* further attempt to get testing right for dictConfig
* move import to correct location
* fix
* remove meaningless options.get() usage
* linting checks and added missing test config file
|
3 years ago | |
|---|---|---|
| .. | ||
| config_files | 3 years ago | |
| ssl_config | 5 years ago | |
| Dockerfile | 3 years ago | |
| __init__.py | 3 years ago | |
| fixtures.py | 3 years ago | |
| test.json | 4 years ago | |
| test_callbacks.py | 3 years ago | |
| test_cli.py | 3 years ago | |
| test_commands.py | 3 years ago | |
| test_connection.py | 3 years ago | |
| test_decorator.py | 3 years ago | |
| test_dependencies.py | 3 years ago | |
| test_fixtures.py | 3 years ago | |
| test_helpers.py | 3 years ago | |
| test_job.py | 3 years ago | |
| test_queue.py | 3 years ago | |
| test_registry.py | 3 years ago | |
| test_results.py | 3 years ago | |
| test_retry.py | 3 years ago | |
| test_scheduler.py | 3 years ago | |
| test_sentry.py | 3 years ago | |
| test_serializers.py | 3 years ago | |
| test_timeouts.py | 3 years ago | |
| test_utils.py | 3 years ago | |
| test_worker.py | 3 years ago | |
| test_worker_pool.py | 3 years ago | |
| test_worker_registration.py | 3 years ago | |