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

Fix cronjob options #23

Merged
merged 7 commits into from
Jun 12, 2024
Merged

Fix cronjob options #23

merged 7 commits into from
Jun 12, 2024

Conversation

nothingface0
Copy link
Contributor

@nothingface0 nothingface0 commented Jun 10, 2024

The cronjob library was not working given the configuration it was being passed, e.g., a */3600 * * * * * crontab was expected to run every 1 hour, but the node-cron library was ignoring any value greater than 60 and it was running every 1 minute.

This PR makes the cronjob options in config.js modify the minute part of the crontab instead, as there's no way that a query to OMS for the latest runs would need to be run more frequently than every 1 minute from our side.

Variable names are updated to reflect their purpose.

Extra logging is also added

@nothingface0 nothingface0 changed the base branch from master to dev June 10, 2024 15:49
@nothingface0 nothingface0 merged commit bf979da into dev Jun 12, 2024
nothingface0 added a commit that referenced this pull request Jun 12, 2024
commit bf979da
Merge: 8a0b6d6 a4b12a8
Author: Dimitris Papagiannis <[email protected]>
Date:   Wed Jun 12 15:05:12 2024 +0200

    Merge pull request #23 from cms-DQM/fix_cronjob_options

    Fix cronjob options

commit a4b12a8
Author: Dimitris Papagiannis <[email protected]>
Date:   Tue Jun 11 11:39:16 2024 +0200

    Adjust request periods, rename function

commit ac31088
Author: Dimitris Papagiannis <[email protected]>
Date:   Mon Jun 10 17:44:49 2024 +0200

    Fix log

commit b1ebd1a
Author: Dimitris Papagiannis <[email protected]>
Date:   Mon Jun 10 17:41:03 2024 +0200

    Rename config variable, change value

commit 1dc5e03
Author: Dimitris Papagiannis <[email protected]>
Date:   Mon Jun 10 17:30:50 2024 +0200

    Update configs for deployments

commit 9650e4d
Author: Dimitris Papagiannis <[email protected]>
Date:   Mon Jun 10 17:26:18 2024 +0200

    Fix cronjob options

commit ec71233
Author: Dimitris Papagiannis <[email protected]>
Date:   Mon Jun 10 17:26:05 2024 +0200

    Skip runs lower than MINIMUM_CMS_RUN_NUMBER

commit e141f2b
Author: Dimitris Papagiannis <[email protected]>
Date:   Mon Jun 10 17:25:22 2024 +0200

    Extra logging
@nothingface0 nothingface0 deleted the fix_cronjob_options branch July 3, 2024 14:32
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.

1 participant