Expand description
Radicle “job COB”.
A Job records results of automated processing of a repository for a
given Git commit, by one or more nodes.
For any one of these processes there is a corresponding Run. For
example, nodes that run CI for a repository might add Run to a Job for a
specific commit. If there are several nodes running CI, they would each add
their own Run to the same Job.
§Example
let mut jobs = Jobs::open(repo).unwrap();
let mut job = jobs.create(oid, &alice.signer).unwrap();
let uuid = Uuid::new_v4();
let log = Url::parse(&format!("https://example.com/ci/logs?run={}", uuid)).unwrap();
job.run(uuid, log, &alice.signer).unwrap();Modules§
Structs§
- Find
ByCommit Iteratorfor finding eachJobwhere theJob::oidmatches the wanted commit. SeeJobs::find_by_commit.- Job
- A
Jobdescribes a generic task run for a given commitOidby a set of nodes. - JobId
- The identifier for a given
Jobcollaborative object. - JobMut
- A
JobMutis aJobwhere the underlyingJobcan be mutated by applying actions to it. - Jobs
- The storage for all
Jobitems. - Run
- A
Runrepresents a task run for aJob. ARunis initially created in with aStatus::Started, before processing has started. - Runs
- A set of
Runs identified by aUuid.
Enums§
- Action
- The collaborative object actions that are used for Radicle COB operations.
- Reason
- The reason for a
Statusto have finished. - Status
- The status of a
Run.
Statics§
- TYPENAME
- Type name of a patch.