Initial Dever 0.0.1

This commit is contained in:
Codex committed 2026-11-03 03:32:07 +00:00
commit 81233d098c
1479 files changed
+163782

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
type Work { subject: Text }
jobSubmit(subject: Text, key: Text) (id: Id) {
pending = run(jobSend(subject, key))
id = wait(pending)
pool = group(2)
run(pool, jobStore(subject + "-group-one"))
run(pool, jobStore(subject + "-group-two"))
wait(pool)
parallelEach(jobStore, [subject + "-parallel-one", subject + "-parallel-two"], 2)
after = jobSend(subject + "-after", key + "-after")
}
transaction jobSend(subject: Text, key: Text) (id: Id) {
id = dever.job.enqueue(job.perform, Work { subject = subject }, key)
}
transaction jobStore(subject: Text) () {
saved = jobSend(subject, subject)
}
jobApply(input: Work) () { saved = seed(input.subject, "from-job") }
jobCount() (total: Int) { total = model.count() }