question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with schedule object literal syntax

See original GitHub issue

When I described schedule like this:

scheduleJob({ second: [0, 10, 20, 30, 40, 50] }, ...
// or
scheduleJob({ minute: [1, 11, 21, 31, 41, 51] }, ...

Sometimes job function called twice at the same schedule time.

screenshot from 2018-06-19 11-10-50

It happens rarely. Also i didn’t notice this issue with string syntax:

scheduleJob('*/10 * * * * *', ...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
santigimenocommented, Jun 19, 2018

@AlexVoitenko can you try with the lastest version (1.3.0). it should be fixed there. In case it’s not, let me know. Thanks!

0reactions
santigimenocommented, Jun 19, 2018

Good to know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting an error "Object literal may only specify ...
Usually this error means you have a bug (typically a typo) in your code, or in the definition file. The right fix in...
Read more >
927649 - for-of iterator result should use object literal syntax instead ...
As discussed in bug 907077 comment 78 and comment 80 the es6 for-of iterator implementation should use object literal syntax instead of Object.create(null)....
Read more >
JavaScript Object Literal Syntax Extension in ES6 By Examples
This tutorial shows you how to use new object literal syntax extensions including property initializer shorthand, computed properties, and concise method.
Read more >
SyntaxError: unterminated string literal
SyntaxError : Unterminated string constant (Edge) SyntaxError: ... String literals must be enclosed by single ( ' ) or double ( " )...
Read more >
Getting Literal With ES6 Template Strings - Chrome Developers
Template String literals with embedded expressions. ... Syntax. Template Strings use back-ticks (``) rather than the single or double quotes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found