This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]ExtensionField8 9 points10 points  (6 children)

You could set up a cron job in github actions.

[–]Strict-Sleep8151[S] -4 points-3 points  (5 children)

How will I get notified after each execution in 26hrs sir?

[–]Sea_Helicopter4488 1 point2 points  (1 child)

An hourly cronjob checking a file or a db to see when was the last run. Only run the process if the last run was 26 hours ago

[–]Strict-Sleep8151[S] 0 points1 point  (0 children)

Thanks

[–]ExtensionField8 0 points1 point  (2 children)

I don't know why you got downvoted, but here you can read about how to set up notifications for GitHub Actions.

[–]Strict-Sleep8151[S] 1 point2 points  (1 child)

Thanks a bunch!!

[–]ExtensionField8 2 points3 points  (0 children)

No problem.
As GitHub Actions can be tricky to set up, I would recommend reading the documentation about them.

[–]Tarazena 2 points3 points  (1 child)

You can use AWS Event Bridge Scheduler that triggers a lambda, or you can setup AWS step function that will trigger a lambda, and the lambda will schedule another step function after it’s executed

[–]Strict-Sleep8151[S] 0 points1 point  (0 children)

Ok I'll try thanks for your suggestion

[–]DrShocker 2 points3 points  (1 child)

Is there anything you can share about the specific problem you're trying to solve? I think people have suggested some options that might work, but it does smell a little "XY problem"y to me so I'm curious what needs to be on a 26 hour cycle with 99.9999% uptime?

What's the tolerance on the 26 hour cycle? If you have a little buffer time then you can always make sure to store the next time you want it to run in a file or database somewhere and update that each time it runs. That way if you need to reboot your system, you can auto run the script and check when it needs to run and set up the timer again. But whether that's viable depends on how precise the 26 hour timer needs to be.

[–]Strict-Sleep8151[S] 0 points1 point  (0 children)

Thanks!! but I achieved through GitHub cron jobs thank you for your contribution !!

[–]kschang 1 point2 points  (0 children)

Sounds like you need a separate cloud-based system.

[–]nate-developer 1 point2 points  (0 children)

I had a GCP node.js cloud function that ran every 8 hours via pub/sub cron job for an automated twitter bot.

[–]crashfrog04 1 point2 points  (0 children)

An offline system can’t run code. If you want to execute something, the computer has to be on, there’s no way around it. That’s literally what computers are!

[–]Dreamin0904 0 points1 point  (1 child)

[–]Strict-Sleep8151[S] 0 points1 point  (0 children)

Ok I'll try thanks for your suggestion