Fork me on GitHub
#babashka
<
2022-05-12
>
michael zhou03:05:23

Hello, want to know someone have tried to use bb and edn to create automation install software script like ansible and its yaml playbook.

Bob B03:05:50

<https://epiccastle.io/spire/> might be in the ballpark of what you're looking for (available from clojure or a babashka pod)

michael zhou06:05:58

@U013JFLRFS8 thanks. will try spire.

borkdude16:05:47

As promised a while back, here are the babashka Q1 2022 survey results! https://blog.michielborkent.nl/babashka-survey-q1-2022.html

šŸ˜Ž 2
babashka 3
šŸ‘ 2
dominic18:05:04

Hi! Iā€™m getting an error ā€œMethod schedule on class java.util.concurrent.Executors$DelegatedScheduledExecutorService not allowed!ā€ on a piece of code that seems to work fine on the JVM - Iā€™m guessing Iā€™m just hitting a limit of what Babashka can do?https://github.com/babashka/babashka/blob/master/src/babashka/impl/classes.clj#L397 but I guess that doesnā€™t mean all of it is accessible? This isnā€™t anything critical, just trying to get my head around the ā€œJava interopā€ bit of Babashka šŸ˜„

āœ… 1
šŸŽ‰ 1
borkdude18:05:29

This can be fixed

borkdude18:05:49

Can you make an issue + repro?

dominic18:05:18

sure šŸ‘

dominic18:05:48

is this a bug or a feature request? šŸ˜…

dominic18:05:06

Iā€™m actually quite a few versions behind Iā€™ve realised so Iā€™ll try to repro on latest babashka first

dominic19:05:17

Ah great thanks! For now Iā€™m getting away with putting a Thread/sleep inside a future and using future-cancel šŸ˜…

dominic19:05:17

Ah makes sense, so even though Executors is included, newSingleThreadScheduledExecutor is returning an instance of DelegatedScheduledExecutorService which isnā€™t in that list.