pulpcore 3.87.0__py3-none-any.whl → 3.87.1__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.
Potentially problematic release.
This version of pulpcore might be problematic. Click here for more details.
- pulp_certguard/app/__init__.py +1 -1
- pulp_file/app/__init__.py +1 -1
- pulpcore/app/apps.py +1 -1
- pulpcore/tasking/worker.py +6 -3
- {pulpcore-3.87.0.dist-info → pulpcore-3.87.1.dist-info}/METADATA +1 -1
- {pulpcore-3.87.0.dist-info → pulpcore-3.87.1.dist-info}/RECORD +10 -10
- {pulpcore-3.87.0.dist-info → pulpcore-3.87.1.dist-info}/WHEEL +0 -0
- {pulpcore-3.87.0.dist-info → pulpcore-3.87.1.dist-info}/entry_points.txt +0 -0
- {pulpcore-3.87.0.dist-info → pulpcore-3.87.1.dist-info}/licenses/LICENSE +0 -0
- {pulpcore-3.87.0.dist-info → pulpcore-3.87.1.dist-info}/top_level.txt +0 -0
pulp_certguard/app/__init__.py
CHANGED
pulp_file/app/__init__.py
CHANGED
pulpcore/app/apps.py
CHANGED
pulpcore/tasking/worker.py
CHANGED
|
@@ -368,10 +368,15 @@ class PulpcoreWorker:
|
|
|
368
368
|
for task in Task.objects.filter(
|
|
369
369
|
state__in=TASK_INCOMPLETE_STATES,
|
|
370
370
|
unblocked_at__isnull=False,
|
|
371
|
+
app_lock__isnull=True,
|
|
371
372
|
).order_by("-immediate", F("pulp_created") + Value(timedelta(seconds=8)) * Random()):
|
|
372
373
|
# This code will only be called if we acquired the lock successfully.
|
|
373
374
|
# The lock will be automatically be released at the end of the block.
|
|
374
375
|
with contextlib.suppress(AdvisoryLockError), task:
|
|
376
|
+
# Check if someone else changed the task before we got the lock.
|
|
377
|
+
task.refresh_from_db()
|
|
378
|
+
if task.state not in TASK_INCOMPLETE_STATES:
|
|
379
|
+
continue
|
|
375
380
|
# We got the advisory lock (OLD) now try to get the app_lock (NEW).
|
|
376
381
|
rows = Task.objects.filter(pk=task.pk, app_lock=None).update(
|
|
377
382
|
app_lock=AppStatus.objects.current()
|
|
@@ -380,12 +385,10 @@ class PulpcoreWorker:
|
|
|
380
385
|
_logger.error(
|
|
381
386
|
"Acquired advisory lock but missed the app_lock for the task. "
|
|
382
387
|
"This should only happen during the upgrade phase to the new app_lock."
|
|
388
|
+
f"Task: {task.pk=}, {task.state=}, {task.app_lock=}."
|
|
383
389
|
)
|
|
384
390
|
continue
|
|
385
391
|
try:
|
|
386
|
-
# Check if someone else changed the task before we got the lock.
|
|
387
|
-
task.refresh_from_db()
|
|
388
|
-
|
|
389
392
|
if task.state == TASK_STATES.CANCELING:
|
|
390
393
|
# No worker picked this task up before being canceled.
|
|
391
394
|
if self.cancel_abandoned_task(task, TASK_STATES.CANCELED):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
pulp_certguard/__init__.py,sha256=llnEd00PrsAretsgAOHiNKFbmvIdXe3iDVPmSaKz7gU,71
|
|
2
2
|
pulp_certguard/pytest_plugin.py,sha256=qhRbChzqN2PROtD-65KuoTfKr5k9T3GPsz9daFgpqpM,852
|
|
3
|
-
pulp_certguard/app/__init__.py,sha256=
|
|
3
|
+
pulp_certguard/app/__init__.py,sha256=WYMLvGPITpzrcbTce_stf9R4c2RVL3Hs8tGW0F6Hsbg,297
|
|
4
4
|
pulp_certguard/app/models.py,sha256=YLEhBtZM4hetekVZ_GTnbLlWD6CkIQw2B3ILwXRcq-s,7483
|
|
5
5
|
pulp_certguard/app/serializers.py,sha256=9IxlQiy783RdKF9oI1mrYS4haG5Boy2DOjfP_eJtMLY,1726
|
|
6
6
|
pulp_certguard/app/viewsets.py,sha256=1_gNmsWyOT8kcOiGVkn4-wrtAjZO4wC8q0-aoEsCpjI,697
|
|
@@ -51,7 +51,7 @@ pulp_certguard/tests/unit/test_rhsm_check_path.py,sha256=Q1CsXnUgD7ELvtolPeumyNr
|
|
|
51
51
|
pulp_file/__init__.py,sha256=0vOCXofR6Eyxkg4y66esnOGPeESCe23C1cNBHj56w44,61
|
|
52
52
|
pulp_file/manifest.py,sha256=1WwIOJrPSkFcmkRm7CkWifVOCoZvo_nnANgce6uuG7U,3796
|
|
53
53
|
pulp_file/pytest_plugin.py,sha256=l1PvTxUi5D3uJy4SnHWNhr-otWEYNcm-kc5nSqVJg0Y,10646
|
|
54
|
-
pulp_file/app/__init__.py,sha256=
|
|
54
|
+
pulp_file/app/__init__.py,sha256=awSma-p8nw866yBA5QwhiIfCg2XgWpwQ6c-4tYPFC-U,292
|
|
55
55
|
pulp_file/app/modelresource.py,sha256=v-m-_bBEsfr8wG0TI5ffx1TuKUy2-PsirhuQz4XXF-0,1063
|
|
56
56
|
pulp_file/app/models.py,sha256=QsrVg_2uKqnR89sLN2Y7Zy260_nLIcUfa94uZowlmFw,4571
|
|
57
57
|
pulp_file/app/replica.py,sha256=OtNWVmdFUgNTYhPttftVNQnSrnvx2_hnrJgtW_G0Vrg,1894
|
|
@@ -96,7 +96,7 @@ pulpcore/pytest_plugin.py,sha256=fy9vz5-bw30T7f4jxDtNIgF7L_0MJ_q7KIAzpvizvnY,382
|
|
|
96
96
|
pulpcore/responses.py,sha256=mIGKmdCfTSoZxbFu4yIH1xbdLx1u5gqt3D99LTamcJg,6125
|
|
97
97
|
pulpcore/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
98
|
pulpcore/app/access_policy.py,sha256=5vCKy6WoHtIt1_-eS5vMaZ7CmR4G-CIpsrB8yT-d88Q,6079
|
|
99
|
-
pulpcore/app/apps.py,sha256=
|
|
99
|
+
pulpcore/app/apps.py,sha256=hBLujC_jOP9ck56_h9jd1-5ROoECvCQZNSa0qfx7niE,17412
|
|
100
100
|
pulpcore/app/authentication.py,sha256=1LIJW6HIQQlZrliHy__jdzkDEh6Oj7xKgd0V-vRcDus,2855
|
|
101
101
|
pulpcore/app/checks.py,sha256=jbfTF7nmftBbky4AQXHigpyCaGydKasvRUXsd72JZVg,1946
|
|
102
102
|
pulpcore/app/entrypoint.py,sha256=GYEq4GjglQZhFlU3865AT_H0nPypDKJAsf8qdyR4tPY,4985
|
|
@@ -339,7 +339,7 @@ pulpcore/tasking/entrypoint.py,sha256=eAypZD4ORoNOrmBeMdbwO9p6GSQ59bMvZ3TrbnE0cz
|
|
|
339
339
|
pulpcore/tasking/kafka.py,sha256=76z4DzeXM1WL5uu1HlKnduWeLO3-b-czvGBXdWR6054,3845
|
|
340
340
|
pulpcore/tasking/storage.py,sha256=zQkwlpC_FDQtmZGZ8vKwHqxvD6CLO_gAS4Q7wijZE-k,3106
|
|
341
341
|
pulpcore/tasking/tasks.py,sha256=CTlWLCmxP5-HZjo5_KLYIJQu-VKJnzQ5cyL7IFNRMWw,12944
|
|
342
|
-
pulpcore/tasking/worker.py,sha256=
|
|
342
|
+
pulpcore/tasking/worker.py,sha256=r8Q6hVqmGrnyXFX-RnxMkZUq478lIDLnZxwyd5DeScw,27400
|
|
343
343
|
pulpcore/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
344
344
|
pulpcore/tests/functional/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
345
345
|
pulpcore/tests/functional/content_with_coverage.py,sha256=gQK8himy32s9O9vpXdgoM6-_z2KySaXm5rTga9z0jGI,260
|
|
@@ -440,9 +440,9 @@ pulpcore/tests/unit/stages/test_artifactdownloader.py,sha256=qB1ANdFmNtUnljg8fCd
|
|
|
440
440
|
pulpcore/tests/unit/stages/test_stages.py,sha256=H1a2BQLjdZlZvcb_qULp62huZ1xy6ItTcthktVyGU0w,4735
|
|
441
441
|
pulpcore/tests/unit/viewsets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
442
442
|
pulpcore/tests/unit/viewsets/test_viewset_base.py,sha256=W9o3V6758bZctR6krMPPQytb0xJuF-jb4uBWTNDoD_U,4837
|
|
443
|
-
pulpcore-3.87.
|
|
444
|
-
pulpcore-3.87.
|
|
445
|
-
pulpcore-3.87.
|
|
446
|
-
pulpcore-3.87.
|
|
447
|
-
pulpcore-3.87.
|
|
448
|
-
pulpcore-3.87.
|
|
443
|
+
pulpcore-3.87.1.dist-info/licenses/LICENSE,sha256=dhnHU8rJXUdAIgIjveSKAyYG_KzN5eVG-bxETIGrNW0,17988
|
|
444
|
+
pulpcore-3.87.1.dist-info/METADATA,sha256=YhN-isGK9qpqbwd06ack1JdUajk4oa_7lxe29nqHVGI,4104
|
|
445
|
+
pulpcore-3.87.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
446
|
+
pulpcore-3.87.1.dist-info/entry_points.txt,sha256=OZven4wzXzQA5b5q9MpP4HUpIPPQCSvIOvkKtNInrK0,452
|
|
447
|
+
pulpcore-3.87.1.dist-info/top_level.txt,sha256=6h-Lm3FKQSaT_nL1KSxu_hBnzKE15bcvf_BoU-ea4CI,34
|
|
448
|
+
pulpcore-3.87.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|