Module: Magik::Jobs
- Defined in:
- lib/magik/jobs.rb
Overview
Background jobs on a Postgres-backed transactional queue (Que-style) by default, swappable to Kafka.
Implements: Phase 4 — Jobs & Async of docs/idea/00-build-spec.md.
Planned DSL surface, copied from the spec:
* `job :Name do retry; schedule :cron/:every; perform do |args| end end`
* `magik worker — horizontally scalable worker process`
Status: Not implemented — spec only. Every entry point below raises NotImplementedError. Nothing here reads config, touches a database or emits a byte of HTML.
Constant Summary collapse
- SPEC_PHASE =
The build-spec phase this subsystem implements.
"Phase 4 — Jobs & Async"- DSL_SURFACE =
The DSL this subsystem will expose, verbatim from the spec.
[ "job :Name do retry; schedule :cron/:every; perform do |args| end end", "magik worker — horizontally scalable worker process" ].freeze
- STATUS =
Implementation status of this subsystem.
"Not implemented — spec only"
Class Method Summary collapse
-
.define(*_args, **_options) ⇒ void
Entry point for the Jobs DSL.
Class Method Details
.define(*_args, **_options) ⇒ void
This method returns an undefined value.
Entry point for the Jobs DSL.
41 42 43 |
# File 'lib/magik/jobs.rb', line 41 def self.define(*_args, **) raise NotImplementedError, "Magik::Jobs is spec-only; see docs/idea/00-build-spec.md" end |