Skip to content

Commit

Permalink
Updated cron workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Dec 3, 2024
1 parent 1828264 commit 61e64f7
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 20 deletions.
81 changes: 62 additions & 19 deletions docs/architecture-flow.drawio
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0" version="24.9.1">
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0" version="25.0.1">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="2456" dy="1082" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<mxGraphModel dx="2283" dy="1088" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
Expand All @@ -14,38 +14,48 @@
<mxCell id="gXQ1bGzr18bKDSAEKjB8-31" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-4" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="290" y="40" />
<mxPoint x="290" y="65" />
<mxPoint x="260" y="65" />
<mxPoint x="335" y="60" />
<mxPoint x="260" y="60" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-32" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-3" edge="1">
<mxCell id="cssAWddXi6w2pjBZ18Qd-15" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="340" y="70" />
<mxPoint x="90" y="70" />
<mxPoint x="90" y="120" />
<mxPoint x="335" y="60" />
<mxPoint x="93" y="60" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-33" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-0" edge="1">
<mxCell id="cssAWddXi6w2pjBZ18Qd-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-0">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-34" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-1" edge="1">
<mxCell id="cssAWddXi6w2pjBZ18Qd-17" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=default;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-35" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-2" edge="1">
<mxCell id="cssAWddXi6w2pjBZ18Qd-18" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="gXQ1bGzr18bKDSAEKjB8-2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-19" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="cssAWddXi6w2pjBZ18Qd-0">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="590" y="50" />
<mxPoint x="910" y="50" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-20" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="cssAWddXi6w2pjBZ18Qd-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="750" y="40" />
<mxPoint x="590" y="50" />
<mxPoint x="1070" y="50" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="Cron Runs" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="250" width="180" height="40" as="geometry" />
<mxGeometry x="250" width="340" height="40" as="geometry" />
</mxCell>
<mxCell id="3H67fLxBT_Na-QWWJiMG-2" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-0" target="gXQ1bGzr18bKDSAEKjB8-15">
<mxCell id="3H67fLxBT_Na-QWWJiMG-2" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-0" target="gXQ1bGzr18bKDSAEKjB8-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-0" value="Social Link Ancillary Page Importer" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
Expand All @@ -69,7 +79,7 @@
<mxCell id="gXQ1bGzr18bKDSAEKjB8-3" value="Book Price Importer" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="32.5" y="90" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="3H67fLxBT_Na-QWWJiMG-1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-4" target="gXQ1bGzr18bKDSAEKjB8-15">
<mxCell id="3H67fLxBT_Na-QWWJiMG-1" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-4" target="gXQ1bGzr18bKDSAEKjB8-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-4" value="TOC Importer" style="rounded=1;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
Expand All @@ -87,7 +97,7 @@
<mxCell id="gXQ1bGzr18bKDSAEKjB8-12" value="Update Award Entity" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="-110" y="210" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3H67fLxBT_Na-QWWJiMG-4" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-13" target="gXQ1bGzr18bKDSAEKjB8-1">
<mxCell id="3H67fLxBT_Na-QWWJiMG-4" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-13" target="gXQ1bGzr18bKDSAEKjB8-1" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-70" y="458" />
Expand All @@ -101,7 +111,7 @@
<mxCell id="gXQ1bGzr18bKDSAEKjB8-13" value="Trigger Book to be updated" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="-110" y="357.5" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="3H67fLxBT_Na-QWWJiMG-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-15" target="gXQ1bGzr18bKDSAEKjB8-23">
<mxCell id="3H67fLxBT_Na-QWWJiMG-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-15" target="gXQ1bGzr18bKDSAEKjB8-23" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-15" value="Update &quot;Book Excerpt&quot; node" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
Expand All @@ -128,7 +138,7 @@
<mxCell id="gXQ1bGzr18bKDSAEKjB8-23" value="Invalidate Node page (slug=/path/to/page) and Excerpt list for respective book (slug=/tags/excerpts:[book-uuid])" style="ellipse;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="262.5" y="310" width="145" height="165" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-24" value="&lt;div&gt;Search API module sends data to Algolia API&lt;/div&gt;" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxCell id="gXQ1bGzr18bKDSAEKjB8-24" value="&lt;div&gt;Search API module sends changed data to Algolia API&lt;/div&gt;" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="710" y="210" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="gXQ1bGzr18bKDSAEKjB8-50" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gXQ1bGzr18bKDSAEKjB8-48" edge="1">
Expand Down Expand Up @@ -215,6 +225,39 @@
<mxCell id="gXQ1bGzr18bKDSAEKjB8-123" value="&lt;div&gt;Invalidate menus (slug=/tags/menu:main)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This will rebuild every page&lt;br&gt;&lt;/div&gt;" style="ellipse;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="-45" y="710" width="150" height="165" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-6" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="cssAWddXi6w2pjBZ18Qd-0" target="cssAWddXi6w2pjBZ18Qd-5">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-0" value="Cover Image Queue" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="850" y="90" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="cssAWddXi6w2pjBZ18Qd-3" target="cssAWddXi6w2pjBZ18Qd-7">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-3" value="Cover Image Downloader" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="1010" y="90" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-13" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;curved=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="cssAWddXi6w2pjBZ18Qd-5" target="cssAWddXi6w2pjBZ18Qd-3">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-5" value="Create cron queue items for each new cover image" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="870" y="210" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="cssAWddXi6w2pjBZ18Qd-7" target="cssAWddXi6w2pjBZ18Qd-8">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-7" value="Download Cover Image" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="1030" y="210" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="cssAWddXi6w2pjBZ18Qd-8" target="cssAWddXi6w2pjBZ18Qd-9">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-8" value="Resize Cover Image" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="1030" y="330" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="cssAWddXi6w2pjBZ18Qd-9" value="&lt;div&gt;Call API to clear cover image flag&lt;/div&gt;" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1">
<mxGeometry x="1030" y="440" width="80" height="80" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
Expand Down
2 changes: 1 addition & 1 deletion docs/press-architecture.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 61e64f7

Please sign in to comment.