rs_workflows/payload_builder.md
.
TaskTableError
Bases: ValueError
Errors related to Task Table parsing/validation.
Source code in docs/rs-client-libraries/rs_workflows/payload_builder.py
28 29 | |
build_cql2_json(query, values)
Recursively replaces placeholders of the form {var} in a dictionary or list using the mapping from 'values'.
Source code in docs/rs-client-libraries/rs_workflows/payload_builder.py
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
build_unit_list(tasktable, pipeline=None, unit=None, processing_mode=None, external_variables=None)
Build the list of units needed for the payload, from the tasktable given and the flow mode (pipeline or unit). If the mode is "unit", the list returned will only contain the requested unit, with its input and output linked to the external input and output. If the mode is "pipeline", the list will contain all the ordered units of the pipeline, with their inputs and outputs correctly chained if needed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tasktable
|
dict[str, Any]
|
dictionary containing the content of the tasktable |
required |
pipeline
|
str | None
|
name of the pipeline to build, if the mode is "pipeline". If "unit" is given, has to be None. |
None
|
unit
|
str | None
|
name of the unit to build, if the mode is "unit". If "pipeline" is given, has to be None. |
None
|
processing_mode
|
Iterable[str] | None
|
list of processing modes used for this flow. Optional |
None
|
external_variables
|
dict[str, Any] | None
|
dictionary of external variables values from flow's input. Optional |
None
|
Source code in docs/rs-client-libraries/rs_workflows/payload_builder.py
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 | |