Fork me on GitHub
#clojure-europe
<
2023-01-07
>
reefersleep07:01:16

😴 good morning

grav08:01:37

Morning! πŸ™‚ Anyone considering going to Strange Loop in September?

borkdude11:01:09

It's a pretty long flight... I'm seeing like 11-17 hour flights from where I live...

grav11:01:03

Good point. 13h from Cph

Thierry11:01:33

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

lread14:01:01

I find http://grep.app really handy for this kind of thing. Here's some usages of cronut: https://grep.app/search?q=cronut&amp;words=true&amp;filter[lang][0]=Clojure

βœ… 2
πŸ™Œ 2
til 2
❀️ 2
lread14:01:00

If your scheduling needs are simpler something lightweight like https://github.com/aphyr/tea-time might do the trick.

Thierry14:01:34

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

Thierry14:01:04

i looked ad chime and tea-time

Thierry14:01:41

also looked at quartzite, but thats no longer maintained

borkdude14:01:41

This is also a light-weight one that even works with babashka :) https://github.com/overtone/at-at

Thierry14:01:56

ive seen that cronut is still updated

borkdude14:01:29

still updated doesn't always mean that it's better: in development vs done ;)

βž• 2
Thierry14:01:57

True, at-at does exactly what I need, but lacks checks for existing jobs

lread14:01:46

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.

Thierry14:01:01

which ofcourse i could implement myself, but if already done then why waste the time πŸ™‚

Thierry14:01:26

indeed, the first time i looked at quartz i was quite overwhelmed, still am.

Thierry14:01:57

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

Thierry14:01:25

plus it uses integrant which means another dependency to import

Thierry14:01:20

I will probably end up writing a wrapper for at-at

Thierry14:01:24

:rolling_on_the_floor_laughing:

borkdude14:01:47

I'm now looking if I can make tea-time work in bb: it needs to extra Java classes

borkdude14:01:08

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"

❀️ 2
lread14:01:24

Cool! Cljdoc uses tea-time for simple scheduling of jobs. Seems to work nicely.

lread14:01:39

A lib that "just works" that has not been updated in 4 years.

Thierry14:01:04

so does at-at indeed, no update in 9 years or so? :)

πŸ‘ 2
lread14:01:18

Goose looks cool but might need infrastructure for messaging?

borkdude14:01:29

It seems quite dep-heavy too

Thierry14:01:20

like I said, at-at does everything i need it to do with the exception of skipping a scheduling if its already scheduled

lread14:01:44

Goose might be more focused on reliability, which is fine if you need it.

lread14:01:51

Chime might be worth a look? Seems that the schedule is not a DSL for that one, you define it with code.

Thierry14:01:08

Ill have a look into it

lread14:01:11

When you find something that works for you, please do report back on what you found!

Thierry06:01:03

@UE21H2HHD ended up sticking with at-at and creating a fork. Adding some functions to it, will post here when finished.

πŸ‘ 2
Thierry16:01:53

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

Thierry18:01:16

There we go, an updated version https://github.com/LouDnl/at-at

πŸŽ‰ 4
borkdude19:01:21

Congrats

πŸŽ‰ 2
Thierry19:01:14

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

borkdude19:01:39

And now an announcement in #C06MAR553 or #C015AL9QYH1? :)

πŸ‘€ 2
Thierry19:01:31

Done in #C06MAR553

pez13:01:48

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. πŸ™

πŸ™Œ 10
lread14:01:03

clj-morning

πŸ˜† 7