Skip to content

Commit cdffb77

Browse files
fixed exception and intervall
1 parent 2e5c737 commit cdffb77

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Entity/Task.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ public function getIntervalExpression()
3333
return $this->intervalExpression;
3434
}
3535

36+
public function getInterval()
37+
{
38+
if (null === $this->interval && null !== $this->intervalExpression) {
39+
$this->interval = CronExpression::factory($this->intervalExpression);
40+
}
41+
42+
return parent::getInterval();
43+
}
44+
3645
/**
3746
* {@inheritdoc}
3847
*/

src/Resources/config/doctrine/TaskExecution.orm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<field name="startTime" type="datetime" nullable="true"/>
2222
<field name="endTime" type="datetime" nullable="true"/>
2323
<field name="scheduleTime" column="schedule_time" type="datetime"/>
24-
<field name="exception" type="object" nullable="true"/>
24+
<field name="exception" type="text" nullable="true"/>
2525
<field name="result" type="object" nullable="true"/>
2626
<field name="status" type="string" length="20"/>
2727

0 commit comments

Comments
 (0)