wbnews 1.59.3__py2.py3-none-any.whl → 1.59.5__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
wbnews/models/news.py CHANGED
@@ -14,6 +14,7 @@ from slugify import slugify
14
14
  from wbcore.contrib.ai.llm.decorators import llm
15
15
  from wbcore.contrib.io.mixins import ImportMixin
16
16
  from wbcore.models import WBModel
17
+ from wbcore.workers import Queue
17
18
 
18
19
  from wbnews.import_export.handlers.news import NewsImportHandler
19
20
  from wbnews.models.llm.cleaned_news import clean_news_config, summarized_news_config
@@ -23,7 +24,7 @@ from wbnews.signals import create_news_relationships
23
24
  from ..utils import detect_near_duplicates
24
25
 
25
26
 
26
- @shared_task
27
+ @shared_task(queue=Queue.DEFAULT.value)
27
28
  def create_relationship(chain_results: list[list[dict[str, Any]]], news_id: int):
28
29
  objs = []
29
30
  for relationships in chain_results:
wbnews/tasks.py CHANGED
@@ -1,11 +1,12 @@
1
1
  from datetime import date, timedelta
2
2
 
3
3
  from celery import shared_task
4
+ from wbcore.workers import Queue
4
5
 
5
6
  from wbnews.models import News
6
7
 
7
8
 
8
- @shared_task()
9
+ @shared_task(queue=Queue.BACKGROUND.value)
9
10
  def handle_daily_news_duplicates(
10
11
  task_date: date | None = None,
11
12
  day_interval: int = 7,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbnews
3
- Version: 1.59.3
3
+ Version: 1.59.5
4
4
  Summary: A workbench module for managing news.
5
5
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
6
6
  Requires-Dist: feedparser==6.*
@@ -5,7 +5,7 @@ wbnews/apps.py,sha256=l4kfE3Pux84Fb34xNgKDxcxRHuPCp6odCGFE9Sa3Wzw,212
5
5
  wbnews/factories.py,sha256=_EBIeMafeiyAjnSAG-xXxdqw7vVwAu8u-DfdLn8mtHk,1172
6
6
  wbnews/serializers.py,sha256=KihExQ_GS1fNZnojryEcfU32xlTiPn-K2WGO0Zc84Cw,4732
7
7
  wbnews/signals.py,sha256=eqipwffwJnDQWUZ9VTKr5Jp-OMXLmVSNwoIsawnCKvM,192
8
- wbnews/tasks.py,sha256=ce9JbXKnJnf7La74h0LPwm3yrygHNe1BKZju_4m1itw,384
8
+ wbnews/tasks.py,sha256=ARkMZbhS3soilHFl9HJh4mXgm6kl5ZlJomVDF_IZ9lY,445
9
9
  wbnews/urls.py,sha256=2Gs9RGU8x6tNOLJiuG17n_ik82QVb8jlw7bU07Lk_S4,1008
10
10
  wbnews/utils.py,sha256=h4TdMbUL0qQ2h3o3jEpGuGwT90TWiryVRtBXc7avLW0,1955
11
11
  wbnews/filters/__init__.py,sha256=FXJcPsLQePCU-fzjpIu44Dsdu9vCckLHr0Kr-8Z_-C4,59
@@ -41,7 +41,7 @@ wbnews/migrations/0013_alter_news_datetime.py,sha256=q4Gbxo25jClsv9b1kfTqBLmpPNH
41
41
  wbnews/migrations/0014_newsrelationship_unique_news_relationship.py,sha256=aZUHLMKRMaXHJrrbnV9O2ZJRDVjbpkb9NjVPB7VKVW0,1073
42
42
  wbnews/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
43
  wbnews/models/__init__.py,sha256=KKIcQbpCPCVNJUPJs2MtpN9Q2Wb34Qdk-C7w6AAOy7w,99
44
- wbnews/models/news.py,sha256=yRbOpVG69yssvJPzv9bZJGMoFcb9n2uLaG2mz2j8oxM,5203
44
+ wbnews/models/news.py,sha256=wkBXx9rMVBWelkWeCiaGk5frKjwp2mb1RFqsoGit1Sk,5263
45
45
  wbnews/models/relationships.py,sha256=bcQbRa-ObS9h67pIuIrodD63RnkzbaOaRT4L6ctBoI0,1841
46
46
  wbnews/models/sources.py,sha256=N3-rBg4myeGG_stHvKiNnSoH0yS-LS_Zr_UeKPMBr5s,2629
47
47
  wbnews/models/utils.py,sha256=1JQxV4WxmmFGl7MdVtJoEeao3vnqqVwCi7mhSToaUvM,600
@@ -60,6 +60,6 @@ wbnews/viewsets/endpoints.py,sha256=2slGDJin_SA2heWsIaMdNTUN46FqZJvusbY1jhAaeZM,
60
60
  wbnews/viewsets/menu.py,sha256=XTShfTIykN9t7oclosPfFVb1r6o46QyglEEe1C7QCMk,979
61
61
  wbnews/viewsets/titles.py,sha256=iMyiGBMBpzng8s2ySVLqEOwueHRnAoEuc75dt9nCPjc,1367
62
62
  wbnews/viewsets/views.py,sha256=SMCDT6bJMQblyqX5cQ7X3qDe0zxTVWh1q7Aqj0fBo2Q,6795
63
- wbnews-1.59.3.dist-info/METADATA,sha256=CYGoREjMAFxAvTlVPPbEygy6SRDl2VzugM1HeztvtIc,215
64
- wbnews-1.59.3.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
65
- wbnews-1.59.3.dist-info/RECORD,,
63
+ wbnews-1.59.5.dist-info/METADATA,sha256=znjBg8Zjf0Ca5suL4gBgPNAytA4G1KhPrBl1wnApYIs,215
64
+ wbnews-1.59.5.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
65
+ wbnews-1.59.5.dist-info/RECORD,,