This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-07
Channels
- # announcements (1)
- # babashka (38)
- # beginners (21)
- # calva (1)
- # cider (6)
- # cljsrn (1)
- # clojure-austin (3)
- # clojure-dev (23)
- # clojure-europe (51)
- # clojurescript (2)
- # clr (100)
- # conjure (3)
- # core-typed (3)
- # data-science (2)
- # fulcro (21)
- # joker (1)
- # joyride (1)
- # lsp (7)
- # malli (4)
- # nbb (5)
- # reagent (1)
- # releases (1)
- # shadow-cljs (5)
- # spacemacs (5)
- # squint (5)
- # xtdb (16)
π΄ good morning
It's a pretty long flight... I'm seeing like 11-17 hour flights from where I live...
Anyone around that can link me to an implementation of Cronut? https://github.com/troy-west/cronut I have read the README and found this sort of example, but it's not really straight forward. https://kit-clj.github.io/docs/scheduling.html
I find http://grep.app really handy for this kind of thing. Here's some usages of cronut: https://grep.app/search?q=cronut&words=true&filter[lang][0]=Clojure

If your scheduling needs are simpler something lightweight like https://github.com/aphyr/tea-time might do the trick.
I'm using at-at atm and that does what I need it to do, but I am missing an option for it to not schedule a task at a certain time if its already scheduler. e.g. a certain process is scheduled for a customer at a certain time and at-at runs every x minutes to schedule tasks but it's not smart as it has no checks to see if something is already scheduled
This is also a light-weight one that even works with babashka :) https://github.com/overtone/at-at
https://github.com/jarohen/chime might also we worth a look.
I have foggy memories of Quartz (which cronut wraps) from my old Java days. I think it was full-featured but maybe big? Can't remember.
which ofcourse i could implement myself, but if already done then why waste the time π
been messing around with cronut for the past hour and its kinda working. not quite keen on having to create defmethods for all jobs i want scheduled tho
Yep, that works
$ bb --classpath $(cat .classpath) -e "(require '[tea-time.core :as tt]) (tt/start\!) (tt/after! 1 (bound-fn [] (prn :hi))) (def dirk (tt/every! 1 2 (bound-fn [] (prn \"THAT is a thing\")))) @(promise)"
:hi
"THAT is a thing"
"THAT is a thing"
"THAT is a thing"
"THAT is a thing"
Therese also https://github.com/nilenso/goose
like I said, at-at does everything i need it to do with the exception of skipping a scheduling if its already scheduled
Chime might be worth a look? Seems that the schedule is not a DSL for that one, you define it with code.
@UE21H2HHD ended up sticking with at-at and creating a fork. Adding some functions to it, will post here when finished.
Need to add some tests and will merge into my master afterwards. For now this will do what I need π https://github.com/LouDnl/at-at/commits/dev
And deployed to Clojars: https://clojars.org/org.clojars.loud/at-at/versions/1.4.0
It works :star-struck::melting_face:
Retrieving org/clojars/loud/at-at/1.4.0/at-at-1.4.0.pom from clojars
Retrieving org/clojars/loud/at-at/1.4.0/at-at-1.4.0.jar from clojars
Good morning! We have just added JavaScript as a #C03DPCLCV9N language. π I'd like to do another Show HN post about Joyride (if I understand their guidelines correctly, it's fine to post another one when we have significant updates and enough time has passed). To go with such a post I'm going to record a video about using Joyride that is targeted at non-Clojurians. I want the video and the HN post to attract interest in Emacs-like configuration of VS Code, to relay how easy it is to get started, and to get people to want to try it out. Any ideas about what to include, what style to use for the video and such are highly welcome, dear Euro-Clojurians. π