plain.jobs 0.36.1__tar.gz → 0.36.3__tar.gz

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 plain.jobs might be problematic. Click here for more details.

Files changed (31) hide show
  1. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/PKG-INFO +1 -1
  2. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/CHANGELOG.md +20 -0
  3. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/workers.py +4 -2
  4. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/pyproject.toml +1 -1
  5. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/.gitignore +0 -0
  6. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/LICENSE +0 -0
  7. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/README.md +0 -0
  8. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/README.md +0 -0
  9. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/__init__.py +0 -0
  10. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/admin.py +0 -0
  11. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/chores.py +0 -0
  12. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/cli.py +0 -0
  13. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/config.py +0 -0
  14. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/default_settings.py +0 -0
  15. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/jobs.py +0 -0
  16. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/middleware.py +0 -0
  17. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/0001_initial.py +0 -0
  18. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/0002_job_span_id_job_trace_id_jobrequest_span_id_and_more.py +0 -0
  19. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/0003_rename_job_jobprocess_and_more.py +0 -0
  20. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/0004_rename_tables_to_plainjobs.py +0 -0
  21. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/0005_rename_constraints_and_indexes.py +0 -0
  22. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/0006_alter_jobprocess_table_alter_jobrequest_table_and_more.py +0 -0
  23. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/migrations/__init__.py +0 -0
  24. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/models.py +0 -0
  25. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/parameters.py +0 -0
  26. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/registry.py +0 -0
  27. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/scheduling.py +0 -0
  28. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/plain/jobs/templates/admin/plainqueue/jobresult_detail.html +0 -0
  29. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/tests/app/settings.py +0 -0
  30. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/tests/test_parameters.py +0 -0
  31. {plain_jobs-0.36.1 → plain_jobs-0.36.3}/tests/test_scheduling.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.jobs
3
- Version: 0.36.1
3
+ Version: 0.36.3
4
4
  Summary: Process background jobs with a database-driven job queue.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -1,5 +1,25 @@
1
1
  # plain-jobs changelog
2
2
 
3
+ ## [0.36.3](https://github.com/dropseed/plain/releases/plain-jobs@0.36.3) (2025-10-20)
4
+
5
+ ### What's changed
6
+
7
+ - Added garbage collection back to worker processes after job completion to help manage memory usage ([aafe3ace02](https://github.com/dropseed/plain/commit/aafe3ace02))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
13
+ ## [0.36.2](https://github.com/dropseed/plain/releases/plain-jobs@0.36.2) (2025-10-20)
14
+
15
+ ### What's changed
16
+
17
+ - Fixed scheduled job detection logic to properly check for `None` instead of checking for list type when determining if a duplicate job was scheduled ([09e45fd96b](https://github.com/dropseed/plain/commit/09e45fd96b))
18
+
19
+ ### Upgrade instructions
20
+
21
+ - No changes required
22
+
3
23
  ## [0.36.1](https://github.com/dropseed/plain/releases/plain-jobs@0.36.1) (2025-10-20)
4
24
 
5
25
  ### What's changed
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import gc
3
4
  import logging
4
5
  import multiprocessing
5
6
  import os
@@ -224,8 +225,8 @@ class Worker:
224
225
  delay=next_start_at,
225
226
  unique_key=schedule_unique_key,
226
227
  )
227
- # Results are a list if it found scheduled/running jobs...
228
- if not isinstance(result, list):
228
+ # Result is None if a duplicate job was detected
229
+ if result:
229
230
  logger.info(
230
231
  'Scheduling job job_class=%s job_queue="%s" job_start_at="%s" job_schedule="%s" job_unique_key="%s"',
231
232
  result.job_class,
@@ -353,3 +354,4 @@ def process_job(job_process_uuid: str) -> None:
353
354
  logger.exception(e)
354
355
  finally:
355
356
  request_finished.send(sender=None)
357
+ gc.collect()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.jobs"
3
- version = "0.36.1"
3
+ version = "0.36.3"
4
4
  description = "Process background jobs with a database-driven job queue."
5
5
  authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes