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

feat: do not rely on comma to encode jobid in progress fixes #2003 #2004

Merged
merged 3 commits into from
Mar 24, 2021

Conversation

manast
Copy link
Member

@manast manast commented Mar 24, 2021

No description provided.

lib/queue.js Outdated
// New way to send progress message data
try {
const { progress, jobId } = JSON.parse(message);
this.emit('global:progress', jobId, JSON.parse(progress));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this second JSON.parse, since we are sending progress this time, not progressJSON string.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yes, you are right, some test should have caught this error though, I will fix it.

Copy link

@abdatta abdatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Liked how you handled both cases to take care of backwards compatibility 😃

@manast manast merged commit 00a15ea into develop Mar 24, 2021
@manast manast deleted the feat/improve-jobid-parse-in-progress branch March 24, 2021 17:45
papandreou added a commit to papandreou/bull that referenced this pull request Apr 27, 2021
* develop: (39 commits)
  chore(release): 3.22.3 [skip ci]
  fix(delayed): re-schedule updateDelay in case of error fixes OptimalBits#2015
  chore(release): 3.22.2 [skip ci]
  chore: fix github token
  chore: correct release branch
  test: increase timeout in test
  chore: add semantic release scripts
  fix(obliterate): obliterate many jobs fixes OptimalBits#2016
  3.22.1
  chore: upgrade dependencies
  chore: update CHANGELOG
  fix(obliterate): remove repeatable jobs fixes OptimalBits#2012
  docs: fix typo
  docs: update README.md
  docs: updated README.md
  Update README.md
  3.22.0
  docs: update CHANGELOG
  feat: do not rely on comma to encode jobid in progress fixes OptimalBits#2003 (OptimalBits#2004)
  3.21.1
  ...
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

Successfully merging this pull request may close these issues.

2 participants