datatracker/ietf/sync
Jennifer Richards b4cf04a09d
feat: celery tasks to replace ietf/bin scripts (#6971)
* refactor: Change import style for clarity

* feat: Add iana_changes_updates_task()

* chore: Squelch lint warning

My linter does not like variables defined outside
of __init__()

* feat: Add PeriodicTask for iana_changes_updates_task

* refactor: tasks instead of scripts on sync.views.notify()

* test: Test iana_changes_updates_task

* refactor: rename task for consistency

* feat: Add iana_protocols_update_task

* feat: Add PeriodicTask for iana protocols sync

* refactor: Use protocol sync task instead of script in view

* refactor: itertools.batched() not available until py312

* test: test iana_protocols_update_task

* feat: Add idindex_update_task()

Calls idindex generation functions and does the file
update dance to put them in place.

* chore: Add comments to bin/hourly

* fix: annotate types and fix bug

* feat: Create PeriodicTask for idindex_update_task

* refactor: Move helpers into a class

More testable this way

* refactor: Make TempFileManager a context mgr

* test: Test idindex_update_task

* test: Test TempFileManager

* fix: Fix bug in TestFileManager

yay testing

* feat: Add expire_ids_task()

* feat: Create PeriodicTask for expire_ids_task

* test: Test expire_ids_task

* test: Test request timeout in iana_protocols_update_task

* refactor: do not re-raise timeout exception

Not sure this is the right thing to do, but it's the
same as rfc_editor_index_update_task

* feat: Add notify_expirations_task

* feat: Add "weekly" celery beat crontab

* refactor: Reorder crontab fields

This matches the crontab file field order

* feat: Add PeriodicTask for notify_expirations

* test: Test notify_expirations_task

* test: Add annotation to satisfy mypy
2024-01-31 15:24:20 -06:00
..
__init__.py Revamp sync from RFC Editor to include more info, fix a couple of bugs 2012-09-17 15:45:27 +00:00
discrepancies.py fix: add distinct() to sync/discrepancies (#5167) 2023-02-17 09:54:07 -06:00
iana.py chore: checkpoint: docalias mostly removed 2023-08-15 16:49:17 -05:00
mails.py Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge. 2017-03-25 19:16:45 +00:00
rfceditor.py fix: Set authors when publishing an RFC (#6957) 2024-01-23 09:04:13 -06:00
tasks.py feat: celery tasks to replace ietf/bin scripts (#6971) 2024-01-31 15:24:20 -06:00
tests.py feat: celery tasks to replace ietf/bin scripts (#6971) 2024-01-31 15:24:20 -06:00
urls.py Updated all urlpatterns to use ietf.utils.urls.url() instead of django's, 2017-02-11 14:43:01 +00:00
views.py feat: celery tasks to replace ietf/bin scripts (#6971) 2024-01-31 15:24:20 -06:00