Commit graph

35 commits

Author SHA1 Message Date
RhodeCode Admin
63ca2ea57b celery: ensure celery workers are compatible with python3.11 and also fix CLI option for celery 5.X 2023-07-25 11:30:32 +02:00
RhodeCode Admin
42301154fc copyrights: updated for 2023 2023-07-18 11:57:27 +02:00
RhodeCode Admin
5357fb11f2 libs: removed utf8 markers 2023-07-18 10:57:59 +02:00
RhodeCode Admin
c3c62e51ff celery: use just one instance of UNSET() object 2023-05-11 12:05:22 +02:00
RhodeCode Admin
f051e2a56e statsd: better task execution reporting on celery 2023-02-08 21:39:12 +01:00
RhodeCode Admin
bc9d34cbec config: reduce max-task-per-child to 20 2023-02-08 12:20:01 +01:00
RhodeCode Admin
a831986529 celery: fixed bootstrap of beat workers 2023-02-07 11:13:08 +01:00
RhodeCode Admin
8be47ab771 celery: allow JSON task data to be sent 2023-02-01 13:58:28 +01:00
RhodeCode Admin
f881540968 celery: bumped to 4.4.7 and fixed loader logic/logging 2023-02-01 13:33:15 +01:00
RhodeCode Admin
137f5001fb celery: update how reqquest object is passed arround.
- fixed hooks callback to actually use web based request passed to thread
- rely on celery conf mechanism to pass in the request always in the same manner
2023-01-31 23:33:33 +01:00
RhodeCode Admin
5c25db9c0c celery: fail with exception if bootstrap is failed 2023-01-31 21:57:02 +01:00
RhodeCode Admin
61a728836a celery: don't allow subtasks within tasks 2023-01-31 21:46:38 +01:00
RhodeCode Admin
f4336fe56e requests: cleaned / unified way of handling requests generation from non-web scope.
- cli
- celery workers
2023-01-31 20:31:36 +01:00
RhodeCode Admin
5b6732fae5 code: small fixes/whitespace/logging 2023-01-31 15:00:19 +01:00
RhodeCode Admin
82c7d91c36 debug: logging fix with reduced redundant info 2023-01-31 11:32:19 +01:00
RhodeCode Admin
a672643796 celery: improve errors handling and logging 2023-01-31 10:07:10 +01:00
RhodeCode Admin
07bf79ea48 tasks: improve logging on failed tasks 2023-01-31 09:26:54 +01:00
RhodeCode Admin
43f40cd31c config: major update for the code to make it be almost fully controllable via env for new docker based installer. 2022-12-12 14:05:25 +01:00
RhodeCode Admin
fb9e5e1720 metrics: expose exc_type in consistent format 2022-10-26 10:17:24 +02:00
RhodeCode Admin
e9cba7b782 metrics: fixed exc type metrics 2022-10-25 13:59:47 +02:00
RhodeCode Admin
bc8d59f1a7 metrics: use prom metrics, and added some additional metrics 2022-10-25 13:08:47 +02:00
RhodeCode Admin
50ffbba0d9 metrics: expose more metrics via statsd
- expections
- celery tasks with statuses
2022-10-25 09:44:44 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Kuzminski
598535dc0d celery: ping db connection before task execution to recycle db connections. 2019-01-16 09:26:56 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
a1086f1051 exc-tracker: store API based exceptions and fix prefixes to no use _ 2018-12-28 12:23:24 +01:00
Marcin Kuzminski
4719d0ff87 code: unified coverage notes to # pragma: no cover 2018-12-07 13:34:28 +01:00
Marcin Kuzminski
b79d6e197a celery: use exc_tracker to store tasks exceptions for easier debugging. 2018-09-10 21:05:38 +02:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
7630ae7c27 celery: register EE tasks if we have EE enabled 2017-12-19 15:32:52 +01:00
Marcin Kuzminski
ec09b85a77 celery: use safer events for execution of tasks 2017-12-19 15:16:14 +01:00
Marcin Kuzminski
d662f70d95 celery: use safe environ extraction. In few cases of executing tasks at non-pyramid level.
e.g executed from hooks we cannot read environ properly. Without it our bootstrap code
will still generate proper urls.
2017-11-30 15:15:22 +01:00
Marcin Kuzminski
cb8a7fccde scheduler: added DB models and db parsers for the RhodeCode scheduler.
- migration schema
- small fixes for form templates
- migrated celeryloader utils for the scheduler
2017-11-28 18:26:11 +01:00
Marcin Kuzminski
846af27fc3 celery: improve fetching of repo_check tasks.
- add refresh link to fail message
- introduce proper timeouts so we don't block forever.
2017-11-21 19:33:53 +01:00
Marcin Kuzminski
6bbab12fcc celery: celery 4.X support. Fixes #4169
- update tasks
- enabled celerybeat to function
- check and cleanup code for 4.X
2017-11-16 19:26:53 +01:00