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

Scheduled jobs print an empty "error:" after every successful execution #8976

Closed
matteoxplo opened this issue Sep 3, 2024 · 0 comments
Closed

Comments

@matteoxplo
Copy link
Contributor

matteoxplo commented Sep 3, 2024

Bug report

Describe the bug

I'm following the v2 guide about settings scheduled jobs and i've noticed that after setting a scheduled job the app print an empty "error:" in the console every time the job runs.
I've tried a basic debug and the message seems to be printed from the file workflow-export.ts in the function attachOnFinishReleaseEvents at line 530. Seems that is missing a check on allWorkflowErrors var in order to skip when there are no error.

System information

Medusa version (including plugins): preview (v2.0.7)
Node.js version: 20.17.0
Database: PostgreSQL 16
Operating system: MacOS Sonoma
Browser (if relevant):

Steps to reproduce the behavior

  1. Create a new project
  2. Create a scheduled jobs like the one suggested here
  3. After 1 minute it will print the message followed by a "error:"

Screenshots

Error message:
Screenshot 2024-09-03 at 22 38 11

Variables values in workflow-export.ts
Screenshot 2024-09-04 at 00 01 41

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

No branches or pull requests

1 participant