Giter Site home page Giter Site logo

Comments (3)

jmettraux avatar jmettraux commented on August 27, 2024 2

Hello,

I have further refined how et-orbi computes rweek which is used for the cron modulo. I think it solves your issue.

Please upgrade to et-orbi 1.2.10 and tell me how it goes.

Merci beaucoup !

from fugit.

bdarcet avatar bdarcet commented on August 27, 2024 1

Hello, @jmettraux !
Thanks again for your fast reply on this issue :)
It looks like the upgrade to et-orbi 1.2.10 fixed all our errors 🎉

I've done a bit of testing to compare our last used versions 1.2.7 & 1.2.10
And it looks like the results are a bit different between the 2 (not for every cron but for some)

I just wanted your opinion on those (it looks like on 1.2.7, we had big jumps in the future on the next_time for example that we don't have anymore - I'm not sure if they were expected in the first place but .. - etc):

Version 1.2.7 1.2.10
cron --- 0 5 * * 2%6 Europe/Berlin --- --- 0 5 * * 2%6 Europe/Berlin ---
previous time 2024-02-27 04:00:00 +00:00 Tuesday 2024-02-27 04:00:00 +00:00 Tuesday
next time 2024-11-05 04:00:00 +00:00 Tuesday 2024-04-16 03:00:00 +00:00 Tuesday
Version 1.2.7 1.2.10
cron --- 0 10 * * 2%2 America/New_York --- --- 0 10 * * 2%2 America/New_York ---
previous time 2024-03-12 14:00:00 +00:00 Tuesday 2024-03-19 14:00:00 +00:00 Tuesday
next time 2024-11-05 15:00:00 +00:00 Tuesday 2024-04-02 14:00:00 +00:00 Tuesday
Version 1.2.7 1.2.10
cron --- 20 0 * * 2%2 America/Los_Angeles --- --- 20 0 * * 2%2 America/Los_Angeles ---
previous time 2024-02-27 08:20:00 +00:00 Tuesday 2024-03-19 07:20:00 +00:00 Tuesday
next time 2024-04-02 07:20:00 +00:00 Tuesday 2024-04-02 07:20:00 +00:00 Tuesday
Version 1.2.7 1.2.10
cron --- 20 9 * * 2%8 America/New_York --- --- 20 9 * * 2%8 America/New_York ---
previous time 2024-03-12 13:20:00 +00:00 Tuesday 2024-03-19 13:20:00 +00:00 Tuesday
next time 2024-12-17 14:20:00 +00:00 Tuesday 2024-05-14 13:20:00 +00:00 Tuesday

Let me know, thank you!

from fugit.

jmettraux avatar jmettraux commented on August 27, 2024 1

Hello @bdarcet,

thanks for the extra test cases. I much prefer the new 1.2.10 results. I've added some debug output to watch how #next_time and #previous_time zero on their target and it seems correct to me, it seems it does not skip now (it skipped too much and triggered the loop breaker previously, hence your reports).

The initial implementation of #rweek was too loose, sorry about that. I'm glad you spotted the issue.

Closing this one now. Please report if there is anything else.

Have a nice week-end!

from fugit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.