You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: task.rb
    path of file: ./repos/foreman/app/services/orchestration
    
    the code of the file until where you have to start completion: module Orchestration
  class Task
    attr_reader :id, :name, :status, :priority, :action, :timestamp, :created

    def initialize(opts)
      @name      = opts[:name]
      @id        = opts[:id].try(:to_s) ||
    
    def initialize(opts)
      @name      = opts[:name]
      @id        = opts[:id].try(:to_s) || @name
      @status    = opts[:status]
      @priority  = opts[:priority] || 0
      @action    = opts[:action]
      @created   = opts[:created] || Time.now.to_f
      raise("action must be present for task '#{name}'") if action.nil?
      update_ts
    end