Skip to content

Commit

Permalink
use latest fuzd
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Nov 4, 2024
1 parent 22f938a commit 148950f
Show file tree
Hide file tree
Showing 9 changed files with 9,305 additions and 6,243 deletions.
6 changes: 3 additions & 3 deletions helper-services/fuzd/cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ if (config.triggers?.crons) {
try {
// await fetch(`http://localhost:34002/cdn-cgi/mf/scheduled?cron=${trigger}`)
if (trigger === `* * * * *`) {
await fetch(`http://localhost:34002/api/internal/processQueue`);
await fetch(`http://localhost:34002/internal/processQueue`);
} else if (trigger === `*/1 * * * *`) {
await fetch(`http://localhost:34002/api/internal/processTransactions`);
await fetch(`http://localhost:34002/internal/processTransactions`);
} else if (trigger === `*/2 * * * *`) {
await fetch(`http://localhost:34002/api/internal/checkScheduledExecutionStatus`);
await fetch(`http://localhost:34002/internal/checkScheduledExecutionStatus`);
}
} catch(e) {
console.log(`failed to fetch...`, e)
Expand Down
4 changes: 2 additions & 2 deletions helper-services/fuzd/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "fuzd-service",
"devDependencies": {
"fuzd-cf-worker": "^0.6.0",
"fuzd-server": "^0.6.0",
"fuzd-cf-worker": "^0.7.0",
"fuzd-server": "^0.7.0",
"ldenv": "^0.3.10",
"node-cron": "^3.0.3",
"set-defaults": "^0.0.2",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"prettier": "^3.3.1",
"sharp": "^0.33.4",
"syncpack": "^12.3.2",
"vitepress": "1.2.3"
"vitepress": "1.2.3",
"zellij-launcher": "^0.0.1"
},
"pnpm": {
"supportedArchitectures": {
Expand Down Expand Up @@ -104,7 +105,7 @@
"---------------------- RUN FULL LOCAL SETUP ----------------------": "",
"start:wezterm": "wezterm --config-file dev/wezterm.lua start $PWD",
"stop": "zellij kill-session $npm_package_name",
"start": "rm -Rf helper-services/fuzd/.wrangler && rm helper-services/fuzd/contracts.json && zellij --layout dev/zellij.kdl a $npm_package_name || zellij --layout dev/zellij.kdl -s $npm_package_name",
"start": "rm -Rf helper-services/fuzd/.wrangler && rm helper-services/fuzd/contracts.json || zellij-launcher --layout dev/zellij.kdl a $npm_package_name || zellij --layout dev/zellij.kdl -s $npm_package_name",
"clean:start": "rm -Rf contracts/deployments/localhost && pnpm start"
}
}
Loading

0 comments on commit 148950f

Please sign in to comment.