Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is logged to console #252

Open
hornta opened this issue Aug 17, 2024 · 0 comments
Open

undefined is logged to console #252

hornta opened this issue Aug 17, 2024 · 0 comments

Comments

@hornta
Copy link

hornta commented Aug 17, 2024

I'm getting the logs suffixed by undefined for a simple job and I guess it's not intended. What might that be?

backend:dev: Worker for job "syncRequisitions" online undefined
backend:dev: Im running in cronjob
backend:dev: Worker for job "syncRequisitions" exited with code 0 undefined
import Bree from "bree";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { ENV } from "./env.ts";

const bree = new Bree({
	root: path.join(path.dirname(fileURLToPath(import.meta.url)), "jobs"),
	defaultExtension: ENV.NODE_ENV === "development" ? "ts" : "js",
	jobs: [{ name: "syncRequisitions", cron: "* * * * *" }],
});

await bree.start();
console.log("Im running in cronjob");

I'm using version 9.2.4 of bree
node v22.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant