-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature / Runtime child jobs, parallel and sequential job groups (#465)
* Suggested metadata for handling sequential and parallel job groups * Make graph builder hold stateful information on job resources, namespace etc * Use EJobValidation for errors in the graph builder * Make the graph builder try to continue after it hits an error * Add graph definitions, functions and builder logic to express child jobs * Engine updates to handle processing for child jobs * Update dev mode translator to handle job recursion (resources are stateful, job def is stateless) * Update code that depends on the new dev mode translator * Create an example import -> process -> export job group * Fix one warning in the graph module * Add some extra paths to git ignore for example data * Add the import -> process -> export group job to the CI job for example models * Minor fixes and tidy-ups * Remove an unneeded code change
- Loading branch information
Martin Traverse
authored
Oct 31, 2024
1 parent
c6cd697
commit 0cc91e9
Showing
13 changed files
with
922 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
|
||
job: | ||
jobGroup: | ||
sequential: | ||
jobs: | ||
|
||
- importData: | ||
|
||
model: tutorial.data_import.SimpleDataImport | ||
|
||
parameters: | ||
storage_key: staging_data | ||
source_file: sample_data.parquet | ||
|
||
outputs: | ||
customer_loans: primary/data_import/customer_loans.csv | ||
|
||
storageAccess: | ||
- staging_data | ||
|
||
- runModel: | ||
|
||
model: tutorial.using_data.UsingDataModel | ||
|
||
parameters: | ||
eur_usd_rate: 1.2071 | ||
default_weighting: 1.5 | ||
filter_defaults: false | ||
|
||
inputs: | ||
customer_loans: primary/data_import/customer_loans.csv | ||
|
||
outputs: | ||
profit_by_region: generated/using_data/profit_by_region.csv | ||
|
||
- exportData: | ||
|
||
model: tutorial.data_export.DataExportExample | ||
|
||
parameters: | ||
storage_key: exported_data | ||
export_comment: "Exporting some example data" | ||
|
||
inputs: | ||
profit_by_region: generated/using_data/profit_by_region.csv | ||
|
||
storageAccess: | ||
- exported_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2024 Accenture Global Solutions Limited | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import tracdap.rt.launch as launch | ||
|
||
launch.launch_job("config/job_group.yaml", "config/sys_config.yaml", dev_mode=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.