orchestrator-core 4.5.0a5__py3-none-any.whl → 4.5.0a6__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.
orchestrator/__init__.py CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  """This is the orchestrator workflow engine."""
15
15
 
16
- __version__ = "4.5.0a5"
16
+ __version__ = "4.5.0a6"
17
17
 
18
18
 
19
19
  from structlog import get_logger
@@ -166,12 +166,16 @@ def create_workflow(conn: sa.engine.Connection, workflow: dict) -> None:
166
166
  "is_task": False,
167
167
  "description": "workflow description",
168
168
  "product_type": "product_type",
169
+ "product_tag": "product_tag",
169
170
  }
170
171
  >>> create_workflow(conn, workflow)
171
172
  """
172
173
  if not workflow.get("is_task", False):
173
174
  workflow["is_task"] = False
174
175
 
176
+ if not workflow.get("product_tag"):
177
+ workflow["product_tag"] = None
178
+
175
179
  if has_table_column(table_name="workflows", column_name="is_task", conn=conn):
176
180
  query = """
177
181
  WITH new_workflow AS (
@@ -186,6 +190,7 @@ def create_workflow(conn: sa.engine.Connection, workflow: dict) -> None:
186
190
  FROM products AS p
187
191
  CROSS JOIN new_workflow AS nw
188
192
  WHERE p.product_type = :product_type
193
+ AND (:product_tag IS NULL OR p.tag = :product_tag)
189
194
  ON CONFLICT DO NOTHING
190
195
  """
191
196
  else:
@@ -203,6 +208,7 @@ def create_workflow(conn: sa.engine.Connection, workflow: dict) -> None:
203
208
  FROM products AS p
204
209
  CROSS JOIN new_workflow AS nw
205
210
  WHERE p.product_type = :product_type
211
+ AND (:product_tag IS NULL OR p.tag = :product_tag)
206
212
  ON CONFLICT DO NOTHING
207
213
  """
208
214
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orchestrator-core
3
- Version: 4.5.0a5
3
+ Version: 4.5.0a6
4
4
  Summary: This is the orchestrator workflow engine.
5
5
  Author-email: SURF <automation-beheer@surf.nl>
6
6
  Requires-Python: >=3.11,<3.14
@@ -1,4 +1,4 @@
1
- orchestrator/__init__.py,sha256=b10pIUZhMABs_krY5yARsqJHtuA72D1ceFcUATOAyZ8,1732
1
+ orchestrator/__init__.py,sha256=F2rD2p-hLcFjUslWKOUIoLQwd-MMglQNUA3EPCszEdk,1732
2
2
  orchestrator/agentic_app.py,sha256=bBMuH9Ub42nb8oFG0U00SzW_uQqnAayUX2tNs6yz1BM,2810
3
3
  orchestrator/app.py,sha256=UPKQuDpg8MWNC6r3SRRbp6l9RBzwb00IMIaGRk-jbCU,13203
4
4
  orchestrator/exception_handlers.py,sha256=UsW3dw8q0QQlNLcV359bIotah8DYjMsj2Ts1LfX4ClY,1268
@@ -220,7 +220,7 @@ orchestrator/migrations/README,sha256=heMzebYwlGhnE8_4CWJ4LS74WoEZjBy-S-mIJRxAEK
220
220
  orchestrator/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
221
221
  orchestrator/migrations/alembic.ini,sha256=kMoADqhGeubU8xanILNaqm4oixLy9m4ngYtdGpZcc7I,873
222
222
  orchestrator/migrations/env.py,sha256=M_cPoAL2axuuup5fvMy8I_WTPHEw0RbPEHkhZ3QEGoE,3740
223
- orchestrator/migrations/helpers.py,sha256=g3G8P5IQ1OI4kmlNP8L0v9nzWvekzXwilXLdEvbN9ZI,47992
223
+ orchestrator/migrations/helpers.py,sha256=sgSNZzQFHGT9_nboxwp_ryP2CWQZsSqEg_0i4giIM2k,48248
224
224
  orchestrator/migrations/script.py.mako,sha256=607Zrgp-Z-m9WGLt4wewN1QDOmHeifxcePUdADkSZyM,510
225
225
  orchestrator/migrations/templates/alembic.ini.j2,sha256=8v7UbKvOiWEbEKQa-Au3uONKUuYx6aflulYanZX6r2I,883
226
226
  orchestrator/migrations/templates/env.py.j2,sha256=LIt0ildZTZvNEx3imhy4GNzfFi_rPZg-8H7rGgrBOP8,2717
@@ -368,7 +368,7 @@ orchestrator/workflows/tasks/resume_workflows.py,sha256=T3iobSJjVgiupe0rClD34kUZ
368
368
  orchestrator/workflows/tasks/validate_product_type.py,sha256=paG-NAY1bdde3Adt8zItkcBKf5Pxw6f5ngGW6an6dYU,3192
369
369
  orchestrator/workflows/tasks/validate_products.py,sha256=kXBGZTkobfYH8e_crhdErT-ypdouH0a3_WLImmbKXcE,8523
370
370
  orchestrator/workflows/translations/en-GB.json,sha256=ST53HxkphFLTMjFHonykDBOZ7-P_KxksktZU3GbxLt0,846
371
- orchestrator_core-4.5.0a5.dist-info/licenses/LICENSE,sha256=b-aA5OZQuuBATmLKo_mln8CQrDPPhg3ghLzjPjLn4Tg,11409
372
- orchestrator_core-4.5.0a5.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
373
- orchestrator_core-4.5.0a5.dist-info/METADATA,sha256=yV6h6TReX2PlujuKdKBTjdG7uCF-TezTQlpgUlPYkK8,6170
374
- orchestrator_core-4.5.0a5.dist-info/RECORD,,
371
+ orchestrator_core-4.5.0a6.dist-info/licenses/LICENSE,sha256=b-aA5OZQuuBATmLKo_mln8CQrDPPhg3ghLzjPjLn4Tg,11409
372
+ orchestrator_core-4.5.0a6.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
373
+ orchestrator_core-4.5.0a6.dist-info/METADATA,sha256=o1E60Zu0I3TwNWdQqrZPeRrhiwtTmsIkHSAq0jeKsSM,6170
374
+ orchestrator_core-4.5.0a6.dist-info/RECORD,,