Skip to content

Commit 8857bb1

Browse files
committed
add template files
1 parent 17387b7 commit 8857bb1

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

etl-job/template.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file is used by `render workflows init` to scaffold new projects.
2+
# It tells the CLI how to display this template and what instructions to show
3+
# after scaffolding. You can safely ignore it when using this example directly.
4+
5+
name: ETL Job
6+
description: CSV extract, record validation, and statistics with batch subtasks
7+
8+
workflowsRoot: .
9+
10+
renderBuildCommand: pip install -r requirements.txt
11+
renderStartCommand: python main.py
12+
13+
nextSteps:
14+
- label: Enter your project directory
15+
command: cd {{dir}}
16+
- label: Start your local task server
17+
command: render workflows dev -- {{startCommand}}
18+
hint: This runs your workflow service locally, allowing you to view and run tasks without deploying to Render.
19+
- label: Run the ETL pipeline locally (in another terminal)
20+
command: "render workflows tasks start run_etl_pipeline --local --input='[\"sample_data.csv\"]'"
21+
hint: This runs Extract → Transform → Load against the included sample_data.csv, which contains both valid and invalid records.
22+
- label: Deploy your workflow service to Render
23+
hint: |
24+
To deploy this workflow to Render, first push this code to a remote repository. Then, create a workflow service from your Render Dashboard, connect it to your repository, and provide the following build and start commands:
25+
• Build command: {{renderBuildCommand}}
26+
• Start command: {{renderStartCommand}}

file-processing/template.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file is used by `render workflows init` to scaffold new projects.
2+
# It tells the CLI how to display this template and what instructions to show
3+
# after scaffolding. You can safely ignore it when using this example directly.
4+
5+
name: File Processing
6+
description: Parallel multi-format file parsing and consolidated reporting
7+
8+
workflowsRoot: .
9+
10+
renderBuildCommand: pip install -r requirements.txt
11+
renderStartCommand: python main.py
12+
13+
nextSteps:
14+
- label: Enter your project directory
15+
command: cd {{dir}}
16+
- label: Start your local task server
17+
command: render workflows dev -- {{startCommand}}
18+
hint: This runs your workflow service locally, allowing you to view and run tasks without deploying to Render.
19+
- label: Process a batch of files locally (in another terminal)
20+
command: "render workflows tasks start process_file_batch --local --input='[\"sample_files/sales_data.csv\", \"sample_files/config.json\", \"sample_files/report.txt\"]'"
21+
hint: This processes the three included sample files in parallel and returns an analysis for each.
22+
- label: Deploy your workflow service to Render
23+
hint: |
24+
To deploy this workflow to Render, first push this code to a remote repository. Then, create a workflow service from your Render Dashboard, connect it to your repository, and provide the following build and start commands:
25+
• Build command: {{renderBuildCommand}}
26+
• Start command: {{renderStartCommand}}

0 commit comments

Comments
 (0)