Skip to content

Commit e2b54db

Browse files
committed
add the cache
1 parent 92c8b14 commit e2b54db

14 files changed

+388
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
__pycache__
22
venv
3-
/cache
43
/dist

cache/artifacts.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"content": {
3+
"path": "fetch",
4+
"ext": ".json",
5+
"type": "generic",
6+
"filepath": "fetch/content.json"
7+
},
8+
"stats": {
9+
"path": "fetch",
10+
"ext": ".json",
11+
"type": "generic",
12+
"filepath": "fetch/stats.json"
13+
},
14+
"result": {
15+
"path": "fetch",
16+
"ext": ".json",
17+
"type": "generic",
18+
"filepath": "fetch/result.json"
19+
},
20+
"website": {
21+
"path": "fetch",
22+
"ext": ".json",
23+
"type": "generic",
24+
"filepath": "fetch/website.json"
25+
}
26+
}

cache/dependencies.dot

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
digraph G {
2+
A [label="fetch-data-1", class="job", shape="box"];
3+
B [label="content", class="artifact", shape="ellipse"];
4+
C [label="calculate-functions", class="job", shape="box"];
5+
D [label="stats", class="artifact", shape="ellipse"];
6+
E [label="compute-statistics", class="job", shape="box"];
7+
F [label="result", class="artifact", shape="ellipse"];
8+
G [label="generate-website", class="job", shape="box"];
9+
H [label="website", class="artifact", shape="ellipse"];
10+
A -> B;
11+
B -> C;
12+
C -> D;
13+
B -> E;
14+
E -> F;
15+
D -> G;
16+
F -> G;
17+
G -> H;
18+
}

cache/dependencies.dot.svg

+109
Loading

cache/dependencies.json

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"nodes": [
3+
{
4+
"label": "fetch-data-1",
5+
"class": "job"
6+
},
7+
{
8+
"label": "content",
9+
"class": "artifact"
10+
},
11+
{
12+
"label": "calculate-functions",
13+
"class": "job"
14+
},
15+
{
16+
"label": "stats",
17+
"class": "artifact"
18+
},
19+
{
20+
"label": "compute-statistics",
21+
"class": "job"
22+
},
23+
{
24+
"label": "result",
25+
"class": "artifact"
26+
},
27+
{
28+
"label": "generate-website",
29+
"class": "job"
30+
},
31+
{
32+
"label": "website",
33+
"class": "artifact"
34+
}
35+
],
36+
"edges": [
37+
{
38+
"source": "fetch-data-1",
39+
"target": "content"
40+
},
41+
{
42+
"source": "content",
43+
"target": "calculate-functions"
44+
},
45+
{
46+
"source": "calculate-functions",
47+
"target": "stats"
48+
},
49+
{
50+
"source": "content",
51+
"target": "compute-statistics"
52+
},
53+
{
54+
"source": "compute-statistics",
55+
"target": "result"
56+
},
57+
{
58+
"source": "stats",
59+
"target": "generate-website"
60+
},
61+
{
62+
"source": "result",
63+
"target": "generate-website"
64+
},
65+
{
66+
"source": "generate-website",
67+
"target": "website"
68+
}
69+
]
70+
}

cache/fetch/content.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"hello": "world"
3+
}

cache/fetch/result.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"result": 6
3+
}

cache/fetch/stats.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"stats": 5
3+
}

cache/fetch/website.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"web": 10
3+
}

cache/pipeline.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[
2+
{
3+
"stage": "fetch",
4+
"job": "fetch-data-1",
5+
"start": "2024-04-21 09:50:41.486325",
6+
"stop": "2024-04-21 09:50:41.587123",
7+
"duration": "0:00:00.100798",
8+
"duration_text": "100 ms"
9+
},
10+
{
11+
"stage": "process",
12+
"job": "calculate-functions",
13+
"start": "2024-04-21 09:50:41.587123",
14+
"stop": "2024-04-21 09:50:41.889199",
15+
"duration": "0:00:00.302076",
16+
"duration_text": "302 ms"
17+
},
18+
{
19+
"stage": "process",
20+
"job": "compute-statistics",
21+
"start": "2024-04-21 09:50:41.889199",
22+
"stop": "2024-04-21 09:50:42.290750",
23+
"duration": "0:00:00.401551",
24+
"duration_text": "401 ms"
25+
},
26+
{
27+
"stage": "build",
28+
"job": "generate-website",
29+
"start": "2024-04-21 09:50:42.290750",
30+
"stop": "2024-04-21 09:50:42.793770",
31+
"duration": "0:00:00.503020",
32+
"duration_text": "503 ms"
33+
}
34+
]

cache/test/example.dot

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
digraph G {
2+
A -> B;
3+
B -> C;
4+
C -> A;
5+
C -> L;
6+
}

cache/test/example.dot.svg

+61
Loading

cache/test/gen.dot

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
digraph G {
2+
A [label="Node A"];
3+
B [label="Node B"];
4+
C [label="Node C"];
5+
A -> B [label="A to B"];
6+
B -> C [label="B to C"];
7+
}

0 commit comments

Comments
 (0)