Coder Social home page Coder Social logo

Quite Confusing Delay Schedule about stevejobs HOT 4 CLOSED

msavin avatar msavin commented on June 6, 2024
Quite Confusing Delay Schedule

from stevejobs.

Comments (4)

msavin avatar msavin commented on June 6, 2024

Hey man - thanks for the interest.

In the example that you used, it would be the same because there are no conflicting options.

However, in this case, there year would become 2037.

Jobs.add("sendReminderEmail", "[email protected]", "The future is here!", {
    on: {
        days: 1,
        hours: 13,
        year: 2036
    }, 
    in: {
        minute: 13,
        year: 1 
    }
});

But in this one, it would be 2036:

Jobs.add("sendReminderEmail", "[email protected]", "The future is here!", {
    in: {
        minute: 13,
        year: 1 
    },
    on: {
        days: 1,
        hours: 13,
        year: 2036
    }, 
});

However, it maybe best to omit that part from the instructions. The thing is, I'm planning to enable functions as an input, so that's where it might get tricky:

Jobs.add("sendReminderEmail", "[email protected]", "The future is here!", {
    in: {
        minute: 13,
        year: 1 
    },
    on: {
        days: 1,
        hours: 13,
        year: function () {
            if (x) { 
                return 2037
            }
        }
    }, 
});

from stevejobs.

alur222 avatar alur222 commented on June 6, 2024

Thanks! It's clear now. 👍

from stevejobs.

luixal avatar luixal commented on June 6, 2024

Hey, I think the package is no longer supported, but I haven't find anything better for this than using LaterJS.

Supporting that may be a different package? SteveJobs-meteor-jobs-queue-laterjs?

from stevejobs.

msavin avatar msavin commented on June 6, 2024

@luixal not sure which package we are discussing - but maybe this is relevant: Jobs.run now supports a date field so you can plug in any library in there.

Going to close this ticket out as it seems old/resolved - but feel free to open a new one.

from stevejobs.

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.