class Task
- Task
- Reference
- Object
Overview
Background task.
By default, background tasks are processed sequentially.
Included Modules
- Ktistec::Model({Common, Polymorphic})
- Ktistec::Model::Common
- Ktistec::Model::InstanceMethods
- Ktistec::Model::Polymorphic
Extended Modules
Direct Known Subclasses
- Task::Backup
- Task::Deliver
- Task::Performance
- Task::Receive
- Task::RefreshActor
- Task::Terminate
- Task::UpdateMetrics
Defined in:
models/task.crmodels/task/backup.cr
models/task/deliver.cr
models/task/mixins/singleton.cr
models/task/mixins/transfer.cr
models/task/performance.cr
models/task/receive.cr
models/task/refresh_actor.cr
models/task/terminate.cr
models/task/update_metrics.cr
Class Method Summary
Instance Method Summary
- #backtrace : Array(String) | Nil
- #backtrace=(backtrace : Array(String) | Nil)
- #complete : Bool
- #complete=(complete : Bool)
- #failures : Array(Failure)
- #failures=(failures : Array(Failure))
- #last_attempt_at : Time | Nil
- #last_attempt_at=(last_attempt_at : Time | Nil)
- #next_attempt_at : Time | Nil
- #next_attempt_at=(next_attempt_at : Time | Nil)
- #past_due?(now = Time.utc)
- #perform
- #runnable?
- #running : Bool
- #running=(running : Bool)
- #schedule(next_attempt_at : Time | Nil = nil)
- #source_iri : String
- #source_iri=(source_iri : String)
- #state : String | Nil
- #state=(state : String | Nil)
- #subject_iri : String
- #subject_iri=(subject_iri : String)
Instance methods inherited from module Ktistec::Model::Polymorphic
as_a(as _as : T.class) : T forall T
as_a,
type : String
type,
type=(type : String)
type=
Instance methods inherited from module Ktistec::Model::Common
created_at : Time
created_at,
created_at=(created_at : Time)
created_at=,
updated_at : Time
updated_at,
updated_at=(updated_at : Time)
updated_at=
Instance methods inherited from module Ktistec::Model::InstanceMethods
==(other)
==,
_run_validations
_run_validations,
_save_model(skip_validation = false)
_save_model,
_serialize_graph(nodes, association = nil, index = nil, skip_associated = false)
_serialize_graph,
_update_property(property, value)
_update_property,
assign(options : Hash(String, Any)) forall Anyassign(**options) assign, changed!(property : Symbol) changed!, changed?(property : Symbol | Nil = nil) changed?, clear!(property : Symbol | Nil = nil) clear!, destroy destroy, destroyed? destroyed?, errors errors, hash(hasher) hash, inspect(io : IO) inspect, new_record? new_record?, reload! reload!, save(skip_validation = false, skip_associated = false) save, serialize_graph(skip_associated = false) serialize_graph, table_name table_name, to_h to_h, to_json(json : JSON::Builder) to_json, to_s(io : IO) to_s, valid?(skip_associated = false) valid?, validate(skip_associated = false) validate
Constructor methods inherited from module Ktistec::Model::InstanceMethods
new(options : Hash(String, Any)) forall Anynew(**options) new