Sha256: 39e9c0c4d19691d18e8879b254f8fc7be463ba98ae4516b73687aad6e29c3af5
Contents?: true
Size: 544 Bytes
Versions: 48
Compression:
Stored size: 544 Bytes
Contents
module Spider; module Worker class Job < Spider::Model::Managed element :uuid, UUID element :description, String element :time, DateTime element :task, String element :status, { 'done' => 'Done', 'failed' => 'Failed' } def run Spider.logger.debug("Running job #{self.uuid}") t = self.task.untaint Thread.start{ $SAFE = 3 eval(t) }.join end end end; end
Version data entries
48 entries across 48 versions & 1 rubygems