Run scheduled tasks in Go

hi,

I’m trying to code a small app that taks in input a json and parse it to extract time (HOUR:MINUTE). Then run tasks when it’s time.
Ex: json:

[
    {
        "id": 1,
        "Product": "P1",
        "Quantity": 11,
        "Time": {
            "Hour":13,
            "Minute":18
        }
    },
    {
        "id": 2,
        "Product": "P2",
        "Quantity": 12,
        "Time": {
            "Hour":10,
            "Minute":12
        }
    },
    {
        "id": 3,
        "Product": "P3",
        "Quantity": 13,
        "Time": {
            "Hour":10,
            "Minute":13
        }
    }
]```
Parsing json and extract Hour and Minute (two int) is ok, but i m blocked with how to run multiple tasks with this hour for each Product ?
Thanks for your help :slight_smile:

I haven’t tried it, but https://github.com/carlescere/scheduler looks like it should work.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.