Commit graph

61 commits

Author SHA1 Message Date
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
RhodeCode Admin
89550b662b metrics: added new statsd client and enabled new metrics on app 2022-10-14 12:47:01 +02:00
RhodeCode Admin
f5cf1a1f86 celerylib: fixed broken tasks for auto-update 2021-10-12 14:09:11 +02:00
RhodeCode Admin
ac5dbf712f emails: default app-from email should be a valid one. 2021-07-15 14:20:03 +02:00
RhodeCode Admin
9f13849af9 api: added proper full permission flush on API calls when creating repos and repo groups.
- This allows a full flush and multiple calls made via API
2021-05-24 23:47:29 +02:00
Milka Kuzminski
3cfae0d77f automation: enabled automated check for new versions. 2021-02-04 23:40:58 +01:00
Milka Kuzminski
08e06718cd events: added new fts build event 2020-11-30 12:29:10 +01:00
Marcin Kuzminski
50d91914f5 emails: set References header for threading in mail user agents even with different subjects
- drop template headers() function as it wasn't used, and actually had bad implementation
2020-07-15 21:37:03 +02:00
Marcin Kuzminski
aae4c3e227 comments: added rcextensions hoooks for comment editing, and renamed methods to remove odd log_ prefix which
isn't exactly what those functions were actually doing.
2020-07-14 11:24:40 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Kuzminski
6a0c148cae emails: added premailer for inline style formatting to make emails render nicer on all email clients. 2020-03-26 12:40:21 +01:00
Daniel Dourvaris
f942ce2001 automation: updated update task to update repositories and groups.
- Groups will be updated by iteration from the most depth one to the root. This way we ensure proper updated of all multiple nested
- repositories don't need special logic and will be updated only on changes.
2019-12-27 14:14:48 +01:00
Marcin Kuzminski
6257560baa automation: moved update groups task into celery task 2019-12-19 12:43:57 +01:00
Marcin Kuzminski
340b56f1fa forks: fixed forking with new landing rev.
- also fix tests for that
2019-10-03 09:34:02 +02:00
Marcin Kuzminski
981307fc4f landing-rev: fixes #4102, use branches instead of landing tip refs by default.
- also changed how readme is rendered based on landing commit to minimize locking for often changing repositories.
2019-08-16 09:55:36 +02:00
Daniel Dourvaris
96fa4e0bdc py3: remove usage of basestring 2019-01-22 23:06:49 +01: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
7f434f9e4c mailer: use default port for mails 2018-11-07 22:48:57 +01:00
Marcin Kuzminski
5a37a33119 mailing: switched from homebrew lib to pyramid_mailer with python3 compatability 2018-10-03 18:47:58 +02:00
Marcin Kuzminski
5a4a98b40e git: use a fetch_sync based creation of remote repos.
- skips fragile dulwich code that has problems with large repos
- is in sync with logic that does remote fetch
- is faster and more efficient
2018-09-21 13:35:45 +02:00
Marcin Kuzminski
c5f41094fe mail: use faster detection of email misconfiguration. This should be done at earliest
possible step to prevent from DB query for recipients if we wont send email anyway.
2018-09-21 12:34:35 +02: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
1bd980d752 emails: ensure none empty emails are fetched from admin accounts in recipinets aren't specified.
- in some cases we could create LDAP or other external accounts with empty email. That could crash the mailing lib.
2018-07-16 18:24:46 +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
e691dbb176 tasks: sync repo will be an EE part of geo sync 2017-12-19 14:26:49 +01:00
Marcin Kuzminski
8d4a73d9d8 celery: fix fork exception message formatting. 2017-12-19 00:18:04 +01:00
Marcin Kuzminski
0ec045c3ac tasks: updated sync_repo task to use repoid instead of name that can change. 2017-12-04 19:37:33 +01:00
Marcin Kuzminski
5b740dd3fb tasks: added a periodic task for repo maintenance. Fixes #5202 2017-12-04 19:24:48 +01:00
Marcin Kuzminski
a368564cba update: add new async task to check for updates via scheduler.
- save the data into DB for later evaluation
- show in system info that we know the system is outdated
2017-12-04 19:23:55 +01:00
Marcin Kuzminski
04f2fedf0b celery: tasks, improve fork/repo create to survive a database errors in the cleanup code. 2017-11-30 15:17:05 +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
b1de755718 celery: don't disable celery if 1 task fails. This results in permanent
disable in case of any errors. We rather want to always check and fallback
to sync.
2017-11-30 15:14:21 +01:00
Marcin Kuzminski
7ac57bc50a celery: improve logging of failed async execution. 2017-11-30 14:20:44 +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
Marcin Kuzminski
5f9ae2ae11 pylons: remove pylons as dependency
- dependencies: bumped:
 -setuptools-scm==1.15.6
 -celery==4.1.0
 -kombu==4.1.0
 -pytz==2017.3
 -Routes==2.4.1

Removed all pylons components. Refactored the code to use only pyramid
parts
2017-11-15 13:42:54 +01:00
Marcin Kuzminski
25436a7365 audit-logs: implemented full audit logs across application.
- Fixes #5321
- Api+web actions
- To be extended while we develop new features.
2017-06-21 12:03:14 +02:00
Marcin Kuzminski
8a3441e96e audit-logs: use specific web/api calls.
- also normalized action_data to specs.
2017-06-14 16:33:23 +02:00
Marcin Kuzminski
1be028f546 audit-logs: moved async tasks from old deprecated action_logger. 2017-06-14 15:45:17 +02:00
Marcin Kuzminski
3d3f2db34a core: removed pyro4 from Enterprise code. Fixes #5198 2017-02-07 15:58:49 +01:00
Marcin Kuzminski
246f2093bd celery: handle pyramid/pylons context better when running async tasks. 2017-01-18 23:13:27 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
048c2f2740 exception-handling: nicer error catching on repository creation. 2016-12-05 08:51:52 +01:00