This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-29
Channels
- # adventofcode (20)
- # announcements (6)
- # asami (13)
- # babashka (9)
- # beginners (80)
- # calva (53)
- # cider (16)
- # clj-kondo (24)
- # cljs-dev (40)
- # clojure (13)
- # clojure-australia (9)
- # clojure-europe (117)
- # clojure-india (3)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-sg (1)
- # clojure-spec (4)
- # clojure-uk (6)
- # clojurescript (6)
- # cursive (41)
- # datalog (5)
- # datomic (11)
- # emacs (9)
- # events (1)
- # fulcro (46)
- # integrant (31)
- # jobs (1)
- # kaocha (1)
- # lein-figwheel (3)
- # lsp (2)
- # meander (3)
- # missionary (4)
- # pathom (6)
- # portal (84)
- # re-frame (3)
- # remote-jobs (1)
- # reveal (2)
- # shadow-cljs (36)
- # tools-build (3)
- # xtdb (17)
What is the correct way to schedule a lambda ion say every 30min? I tried to click it in "EventBridge" but it errs:
datomic.ion.lambda.handler.exceptions.Incorrect: datomic.ion.lambda.handler.exceptions.Incorrect
---
Is there a command to remove ions? ✅
---
where can I read on logging from inside an ion?datomic.ion.lambda.handler.exceptions.Incorrect: datomic.ion.lambda.handler.exceptions.Incorrect
clojure.lang.ExceptionInfo: null {:cognitect.anomalies/category :cognitect.anomalies/incorrect, :cognitect.anomalies/message nil}
at datomic.ion.lambda.handler$throw_anomaly.invokeStatic(handler.clj:25)
at datomic.ion.lambda.handler$throw_anomaly.invoke(handler.clj:21)
at datomic.ion.lambda.handler.Handler.on_anomaly(handler.clj:175)
at datomic.ion.lambda.handler.Handler.handle_request(handler.clj:205)
at datomic.ion.lambda.handler$fn__3856$G__3781__3861.invoke(handler.clj:68)
at datomic.ion.lambda.handler$fn__3856$G__3780__3867.invoke(handler.clj:68)
at clojure.lang.Var.invoke(Var.java:399)
at datomic.ion.lambda.handler.Thunk.handleRequest(Thunk.java:35)
If you remove references to an ion from ion-config.edn
, the next deployment will delete the orphaned lambda(s). As for you original question, I let other people answer it.
You can invoke a Lambda however you'd like. Event-Bridge (formerly CloudWatch Events) is a fine option for a scheduled "cron" task.
@U02CV2P4J6S If you're still having trouble with this, you can follow the https://github.com/Datomic/ion-starter project, specifically, the section on https://github.com/Datomic/ion-starter/blob/master/src/datomic/ion/starter/lambdas.clj for inspiration.
@U0CJ19XAM hm. Do you know if the event bridge has the correct permissions and such by default? I guess I'll try making a simple one work
I'd follow https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-run-lambda-schedule.html but use the Lambda Ion instead of the javascript one they show you how to make. Specifically, you need to do the part (that I can't link to ) that starts with the phrase
To grant the EventBridge service principal....
If you remove references to an ion from ion-config.edn
, the next deployment will delete the orphaned lambda(s). As for you original question, I let other people answer it.