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
Daniel Dourvaris
c1a7f5edef
celery: dont proxy request if one not available (eg. repo push) and
...
use pyramid settings rather than pylons since repo push has no
pylons context available.
2016-08-12 03:41:09 +03:00
Marcin Kuzminski
1a3fdde786
cleanup: remove left over print statement
2016-08-12 01:30:52 +02:00
Daniel Dourvaris
9d83e38374
docs: document email integration
2016-08-11 14:17:52 +03:00
Daniel Dourvaris
79206c1582
integrations: add email integration, fixes #4159
2016-08-11 13:16:29 +03:00
Daniel Dourvaris
f318bfa3d5
celery: move pyramid app to celery init rather than per task run
2016-08-11 20:18:50 +03:00
Martin Bornhold
a5fa6cfaca
config: Use prepared settings from app init to setup the vcs connection.
2016-08-10 16:59:41 +02:00
Daniel Dourvaris
95ff761670
celery: create custom celery task class which loads context/threadlocals
...
of the original request required for tasks like create_repo which needs
to generate a url after the repo is created. fixes #4139
2016-08-03 03:59:58 +03:00
Daniel Dourvaris
46ab48ce5e
celery: set global CELERY_ENABLED on any connection error
2016-06-30 19:38:31 +03:00
Daniel Dourvaris
d017c17269
celery: log exception in the event of unknown IOError
2016-06-24 14:35:49 +03:00
Daniel Dourvaris
38df61623b
celery: fixed bug where celery was not running
2016-06-24 14:21:29 +03:00
Marcin Kuzminski
9a0d8c0b77
project: added all source files and assets
2016-05-24 15:56:53 +02:00