26 Commits

Author SHA1 Message Date
Beverly Nguyen
4f82c69323 flake 8 2025-08-07 11:51:25 -07:00
Carlo Costino
bf171ebaab Remova unneeded hilite import
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-07-31 12:58:57 -04:00
Carlo Costino
5e4e763119 Remove logging from gunicorn config file
This changeset removes the logging statements in the gunicorn config file to see if that addresses the issue we are seeing.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-07-31 12:55:25 -04:00
Kenneth Kehl
e82e138771 change gunicorn timeout to 240 seconds 2025-07-30 10:51:54 -07:00
Carlo Costino
f69e3a5a00 Undo recent changes related to Python upgrade
This changeset undoes the recent changes we tried after the Python 3.13 update as they had no bearing on the SSL cert validation errors.  Back to the drawing board!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-07-29 16:32:52 -04:00
Kenneth Kehl
8593a9b1ba disable gevent 2025-07-29 10:31:06 -07:00
Kenneth Kehl
ee47610d2a switch eventlet to gevent 2025-07-28 09:21:46 -07:00
Carlo Costino
28efb2716b Merge pull request #1618 from GSA/1612-add-in-new-endpoint-for-weekly-by-user_id
1612 add in new endpoint for week stats by user
2024-07-03 14:21:49 -04:00
Kenneth Kehl
81dd764a54 fix gunicorn config 2024-06-21 09:22:20 -07:00
Beverly Nguyen
4b5c77f6c4 fixing flake8 error 2024-06-20 16:14:07 -07:00
Kenneth Kehl
51a9dfdfd2 update gunicorn config 2024-06-12 13:42:04 -07:00
Carlo Costino
787c46e7b0 Merge pull request #729 from GSA/notify-api-412b
notify-api-412b use black to enforce python coding style
2023-08-25 16:37:22 -04:00
Carlo Costino
bbc84fc095 Remove final metrics reference
This changeset removes a leftover reference to the gds_metrics library, which was taken out previously.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-25 14:50:52 -04:00
Kenneth Kehl
8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Ryan Ahearn
f3402f06f6 Use only stdout logging in cloud.gov 2022-11-30 17:28:26 -05:00
stvnrlly
e12e780a05 code cleanup 2022-11-28 15:53:56 -05:00
Ben Thorner
43a2f2f271 Fix rediss ssl eventlet sslerror bug
This is the same as [^1].

I did a test deploy to double check that Redis on PaaS doesn't work
without this.

[^1]: a2cbe20325
2022-04-12 17:46:51 +01:00
David McDonald
3e80ba4734 Fix flake8 and isort errors
Note, isort now has default behaviour of searching recursively so we no
longer need the `-rc` flag
2021-03-08 18:48:56 +00:00
David McDonald
d4ed909d0f Revert "Revert "Statsd to prometheus"" 2020-07-01 13:27:12 +01:00
David McDonald
5fb58260e2 Revert "Statsd to prometheus" 2020-07-01 10:00:39 +01:00
David McDonald
043e6ac69c Add GDS metrics package to admin app
Follows the code from the API
2020-06-30 14:24:34 +01:00
Chris Hill-Scott
fcc84ac514 Do extra code style checks with flake8-bugbear
Flake8 Bugbear checks for some extra things that aren’t code style
errors, but are likely to introduce bugs or unexpected behaviour. A
good example is having mutable default function arguments, which get
shared between every call to the function and therefore mutating a value
in one place can unexpectedly cause it to change in another.

This commit enables all the extra warnings provided by Flake8 Bugbear,
except for the line length one (because we already lint for that
separately).

It disables:
- _B003: Assigning to os.environ_ because I don’t really understand this
- _B306: BaseException.message is removed in Python 3_ because I think
  our exceptions have a custom structure that means the `.message`
  attribute is still present
2019-11-01 10:43:01 +00:00
Leo Hemsted
ec867c04c2 remove gunicorn server header
see https://github.com/alphagov/notifications-api/pull/2640 for more
information
2019-10-23 16:37:58 +01:00
Leo Hemsted
cc3b2f1ab9 disable gunicorn access logs
they're turning up in syslog, which means they're getting into kibana now

also move config settings from manifest to gunicorn_config.py
2018-06-25 11:24:31 +01:00
Athanasios Voutsadakis
1e9c04c583 Change .info to .error 2017-09-25 16:24:11 +01:00
Athanasios Voutsadakis
79752d2754 Configure gunicorn errorlog
Related: alphagov/notifications-api/pull/1274
2017-09-22 15:41:41 +01:00