one line for one build job

This commit is contained in:
aynsix
2020-07-27 14:00:27 +03:00
parent f85ea02434
commit 4585f34996
12 changed files with 258 additions and 86 deletions

View File

@@ -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
*/