zulip/zproject
Mateusz Mandera 634015411a update_analytics_count: Use a correct lock mechanism.
Adds a re-usable lockfile_nonblocking helper to context_managers.

Relying on naive `os.mkdir` is not enough especially now that the
successful operation of this command is necessary for push notifications
to work for many servers.

We can't use `lockfile` context manager from
`zerver.lib.context_managers`, because we want the custom behavior of
failing if the lock can't be acquired, instead of waiting.
That's because if an instance of this gets stuck, we don't want to start
queueing up more processes waiting forever whenever the cronjob runs
again and fail->exit is preferrable instead.
2024-03-05 10:21:14 -08:00
..
jinja2 jinja2: Make sure that 500 pages have support_email set. 2023-04-12 16:41:07 -07:00
__init__.py
backends.py ruff: Fix RUF025 Unnecessary dict comprehension for iterable. 2024-03-01 09:30:04 -08:00
computed_settings.py update_analytics_count: Use a correct lock mechanism. 2024-03-05 10:21:14 -08:00
config.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00
configured_settings.py settings: Print about custom settings from runtornado. 2023-12-05 12:33:34 -08:00
default_settings.py puppet: Rename puppet/zulip_ops to puppet/kandra. 2024-02-06 17:56:27 -08:00
dev_settings.py settings: Simplify testing push bouncer. 2023-12-10 17:36:25 -08:00
dev_urls.py config_error: Split error pages into their own pages. 2023-10-11 17:13:01 -07:00
email_backends.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py s3: Add a setting for S3 addressing style. 2024-01-05 11:12:18 -08:00
sentry.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
settings_types.py saml: Rework SP-initiated logout config to support IdP-level config. 2023-05-23 13:01:15 -07:00
template_loaders.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
test_extra_settings.py Revert "zproject: Prevent having exactly 17/18 middlewares, for Python 3.11 bug." 2024-02-05 19:57:21 -05:00
test_settings.py settings: Refactor how TEST_SUITE is configured. 2023-12-04 09:50:14 -08:00
urls.py tornado: Add a web_reload_clients endpoint to notify web clients. 2024-02-15 15:42:50 -08:00
wsgi.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00