mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
one line for one build job
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Alchemy\Phrasea\Core\PhraseaTokens;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
@@ -14,7 +13,8 @@ class WorkerRunningJob
|
||||
{
|
||||
const FINISHED = 'finished';
|
||||
const RUNNING = 'running';
|
||||
const ERROR = 'error attempt ';
|
||||
const ERROR = 'error';
|
||||
const ATTEMPT = 'attempt ';
|
||||
|
||||
const TYPE_PULL = 'uploader pull';
|
||||
const TYPE_PUSH = 'uploader push';
|
||||
@@ -58,6 +58,11 @@ class WorkerRunningJob
|
||||
*/
|
||||
private $assetId;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", name="info", nullable=true)
|
||||
*/
|
||||
private $info;
|
||||
|
||||
/**
|
||||
* @Gedmo\Timestampable(on="create")
|
||||
* @ORM\Column(type="datetime")
|
||||
@@ -202,6 +207,25 @@ class WorkerRunningJob
|
||||
return $this->assetId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $info
|
||||
* @return $this
|
||||
*/
|
||||
public function setInfo($info)
|
||||
{
|
||||
$this->info = $info;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getInfo()
|
||||
{
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
*/
|
||||
|
Reference in New Issue
Block a user