This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-31
Channels
- # announcements (5)
- # babashka (5)
- # beginners (24)
- # calva (21)
- # cherry (1)
- # clerk (20)
- # clj-kondo (3)
- # clj-otel (12)
- # clojure (50)
- # clojure-austin (2)
- # clojure-conj (3)
- # clojure-europe (40)
- # clojure-nl (1)
- # clojure-norway (203)
- # clojure-spec (3)
- # clojure-uk (6)
- # clojurescript (8)
- # conjure (1)
- # datomic (1)
- # deps-new (1)
- # emacs (5)
- # graphql (8)
- # gratitude (5)
- # holy-lambda (16)
- # honeysql (18)
- # hyperfiddle (12)
- # java (1)
- # jobs (1)
- # lsp (24)
- # membrane (8)
- # nbb (1)
- # off-topic (19)
- # portal (28)
- # proletarian (11)
- # rdf (63)
- # re-frame (38)
- # reagent (8)
- # reitit (1)
- # releases (6)
- # remote-jobs (1)
- # scittle (4)
- # shadow-cljs (20)
- # spacemacs (4)
- # sql (7)
- # transit (1)
this might sound dumb - but im considering using proletariat's job table in...perhaps a strange way
specifically, on a trigger from another table inserting a job for proletarian to pick up
I need to do exactly the same
I ran into this problem, unfortunately: https://github.com/msolli/proletarian/issues/22
CREATE TABLE IF NOT EXISTS job (
job_id UUID PRIMARY KEY, -- job id, generated and returned by proletarian.job/enqueue!
queue TEXT NOT NULL, -- queue name
job_type TEXT NOT NULL, -- job type
payload TEXT NOT NULL, -- Transit-encoded job data
attempts INTEGER NOT NULL, -- Number of attempts. Starts at 0. Increments when the job is processed.
enqueued_at TIMESTAMP NOT NULL, -- When the job was enqueued (never changes)
process_at TIMESTAMP NOT NULL -- When the job should be run (updates every retry)
);
I can edit this sql to make it a little easier on my end (default time on enqueued and processe_at and default value on attempts + job_id)its pretty easy to make json in postgres for the job data, but if that json is "~" then its not valid transit
because it would mean that hypothetically putting a ~ at the start of some random fields would be a hidden bug