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

Implementing #928 with a cron expression. Limited code and workflow c… #1295

Closed
wants to merge 1 commit into from

Conversation

LLeny
Copy link

@LLeny LLeny commented Feb 11, 2022

Description

Fixes #928 with a cron expression. Limited code and workflow changes.

Type of change

  • User interface (UI)
  • New feature (non-breaking change which adds functionality)
  • Translation update
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I ran ESLint and other linters for modified files
  • I have performed a self-review of my own code and tested it
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

image

const nextOccurences = later.schedule(laterCron).next(2);

let calculatedInterval = Math.floor((nextOccurences[0].getTime() - Date.now()) / 1000);
if (calculatedInterval < 20) { //beat interval too low, using next interval
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe in previous line (or next)?

Suggested change
if (calculatedInterval < 20) { //beat interval too low, using next interval
if (calculatedInterval < 20) { // beat interval too low, using next interval

@zorrobiwan
Copy link

This feature is really cool to monitor cron tasks. Is there a schedule for the merge?

Thanks !

@LLeny LLeny closed this Feb 18, 2023
@napiquet
Copy link

Any explanation as to why this PR was closed?

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.

timetable not to do checks
4 participants