Skip to content

Commit

Permalink
Merge pull request #4171 from Coduz/fix-schedTriggerAligner
Browse files Browse the repository at this point in the history
🐛 [Scheduler] Fixed update of TriggerDefinitionProperty.propertyType and definitions
  • Loading branch information
Coduz authored Jan 13, 2025
2 parents 4e2973c + 68a6b87 commit b851b8e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public CronJobTriggerDefinition() {
new TriggerPropertyRecord(
CronJobTriggerDefinitionPropertyKeys.CRON_EXPRESSION,
"The cron expression that defines the schedule of executions. Check documentation for CRON syntax",
KapuaId.class.getName(),
String.class.getName(),
null)
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public IntervalJobTriggerDefinition() {
new TriggerPropertyRecord(
IntervalJobTriggerDefinitionPropertyKeys.INTERVAL,
"Fixed time between job executions in seconds",
KapuaId.class.getName(),
Integer.class.getName(),
null)
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private boolean triggerDefinitionPropertiesAreEqual(TriggerDefinition dbTriggerD
if (dbTriggerDefinitionProperty == null) {
LOG.warn("Wired TriggerProperty '{}' of TriggerDefinition '{}' is not aligned with the database one",
wiredTriggerDefinitionProperty.getName(),
wiredTriggerDefinitionProperty.getName());
wiredTriggerDefinition.getName());

return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public class TriggerPropertyImpl implements TriggerProperty {
private String description;

@Basic
@Column(name = "property_type", nullable = false, updatable = false)
@Column(name = "property_type", nullable = false, updatable = true)
private String propertyType;

@Basic
@Column(name = "property_value", nullable = false, updatable = false)
@Column(name = "property_value", nullable = false, updatable = true)
private String propertyValue;

/**
Expand Down

0 comments on commit b851b8e

Please sign in to comment.