Use completedAt timestamp for success and failures
[MAILPOET-4463]
This commit is contained in:
committed by
Jan Jakeš
parent
57cf547a8a
commit
2c2f15a562
@ -121,13 +121,14 @@ class WorkflowRunLog {
|
||||
];
|
||||
}
|
||||
|
||||
public function markCompleted(): void {
|
||||
public function markCompletedSuccessfully(): void {
|
||||
$this->status = self::STATUS_COMPLETED;
|
||||
$this->completedAt = new DateTimeImmutable();
|
||||
}
|
||||
|
||||
public function markFailed(): void {
|
||||
$this->status = self::STATUS_FAILED;
|
||||
$this->completedAt = new DateTimeImmutable();
|
||||
}
|
||||
|
||||
public function addError(\Exception $exception, string $userFacingMessage = ''): void {
|
||||
|
Reference in New Issue
Block a user