Skip to content

gitflarePublicPartly agent-ready50

cf-workflows-pipeline

Durable content pipeline on Cloudflare Workflows: ingest, extract, summarise with Workers AI via AI Gateway, human approval, publish.

Fix pipeline runs failing at ingest (steps.attempt NOT NULL)629b2fa
JavaScript14 lines1.2 KB
export function el(tag, attrs = {}, ...kids) {  const n = document.createElement(tag);  for (const [k, v] of Object.entries(attrs)) { if (v === false || v == null) continue; if (k.startsWith("on")) n.addEventListener(k.slice(2), v); else n.setAttribute(k, v === true ? "" : v); }  for (const k of kids.flat()) if (k !== "" && k != null && k !== false) n.append(k.nodeType ? k : document.createTextNode(k));  return n;}const P = { done: "M5 12l5 5 9-10", failed: "M6 6l12 12M18 6L6 18", rejected: "M6 6l12 12M18 6L6 18", running: "M12 4a8 8 0 1 0 8 8", retrying: "M4 12a8 8 0 0 1 14-5M20 4v4h-4", waiting: "M12 6v6l4 2", queued: "M8 12h8", published: "M5 12l5 5 9-10" };export function icon(state) {  const s = document.createElementNS("http://www.w3.org/2000/svg", "svg");  s.setAttribute("viewBox", "0 0 24 24"); s.setAttribute("width", "16"); s.setAttribute("height", "16"); s.setAttribute("aria-hidden", "true");  s.setAttribute("fill", "none"); s.setAttribute("stroke", "currentColor"); s.setAttribute("stroke-width", "2.4"); s.setAttribute("stroke-linecap", "round");  const p = document.createElementNS("http://www.w3.org/2000/svg", "path"); p.setAttribute("d", P[state] || P.queued); s.append(p); return s;}