From 4ccc564d16aae7b604024fa8ecc8676082046e13 Mon Sep 17 00:00:00 2001
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Mon, 13 Jul 2026 16:17:48 +0200
Subject: [PATCH] Add patch to make package reproducible

---
 ...lt-for-max_workers-to-make-it-reprod.patch | 20 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 21 insertions(+)
 create mode 100644 debian/patches/0005-Set-sample_default-for-max_workers-to-make-it-reprod.patch

diff --git a/debian/patches/0005-Set-sample_default-for-max_workers-to-make-it-reprod.patch b/debian/patches/0005-Set-sample_default-for-max_workers-to-make-it-reprod.patch
new file mode 100644
index 00000000..5eee0b08
--- /dev/null
+++ b/debian/patches/0005-Set-sample_default-for-max_workers-to-make-it-reprod.patch
@@ -0,0 +1,20 @@
+From: Jochen Sprickerhof <jspricke@debian.org>
+Date: Mon, 13 Jul 2026 16:17:28 +0200
+Subject: Set sample_default for max_workers to make it reproducible
+
+---
+ watcher/applier/workflow_engine/default.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/watcher/applier/workflow_engine/default.py b/watcher/applier/workflow_engine/default.py
+index df726d9..0a8f543 100644
+--- a/watcher/applier/workflow_engine/default.py
++++ b/watcher/applier/workflow_engine/default.py
+@@ -61,6 +61,7 @@ class DefaultWorkFlowEngine(base.BaseWorkFlowEngine):
+             cfg.IntOpt(
+                 'max_workers',
+                 default=processutils.get_worker_count(),
++                sample_default=4,
+                 min=1,
+                 required=True,
+                 help='Number of workers for taskflow engine '
diff --git a/debian/patches/series b/debian/patches/series
index 1bb87bf9..3d600394 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ install-all-files.patch
 remove-sphinxcontrib.rsvgconverter.patch
 removed-sphinxcontrib.httpdomain-from-sphinx-ext.patch
 make-watcher-reproducible.patch
+0005-Set-sample_default-for-max_workers-to-make-it-reprod.patch
-- 
2.53.0

