Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ ByteChef can be configured using environment variables. This page documents all
| Environment Variable | Description | Default Value |
|---|---|---|
| `BYTECHEF_COORDINATOR_TRIGGER_POLLING_CHECK_PERIOD` | Trigger polling interval in minutes | `5` |
| `BYTECHEF_COORDINATOR_TRIGGER_SCHEDULER_PROVIDER` | Scheduler provider (AWS, QUARTZ) | `QUARTZ` |
| `BYTECHEF_COORDINATOR_TRIGGER_SUBSCRIPTIONS_APPLICATION_EVENTS` | Number of application event subscribers | `1` |
| `BYTECHEF_COORDINATOR_TRIGGER_SUBSCRIPTIONS_TRIGGER_EXECUTION_COMPLETE_EVENTS` | Number of trigger execution complete event subscribers | `1` |
| `BYTECHEF_COORDINATOR_TRIGGER_SUBSCRIPTIONS_TRIGGER_EXECUTION_ERROR_EVENTS` | Number of trigger execution error event subscribers | `1` |
Expand Down Expand Up @@ -210,6 +209,12 @@ ByteChef can be configured using environment variables. This page documents all

System administrator is used for accessing protected data reachable through /actuator/** endpoints. For example /actuator/env returns all environment properties.

## Scheduler Configuration

| Environment Variable | Description | Default Value |
|---|---|---|
| `BYTECHEF_SCHEDULER_PROVIDER` | Scheduler provider (AWS, QUARTZ) | `QUARTZ` |

## Sign Up Configuration

| Environment Variable | Description | Default Value |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ bytechef:
polling:
# Trigger polling interval in minutes (default: 5)
check-period: 5
scheduler:
# Trigger scheduler provider (aws(ee) | quartz) default: quartz
provider: quartz
data-storage:
# Data storage provider (aws(ee) | filesystem | jdbc) default: jdbc
provider: jdbc
Expand Down Expand Up @@ -116,6 +113,9 @@ bytechef:
public-url:
resources:
web: file:///opt/bytechef/client/
scheduler:
# Trigger scheduler provider (aws(ee) | quartz) default: quartz
provider: quartz
security:
content-security-policy: "default-src 'self'; frame-src 'self' https://*.command.ai data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.command.ai https://*.commandbar.com https://*.i.posthog.com https://cdn.jsdelivr.net https://storage.googleapis.com https://unpkg.com; style-src 'self' 'unsafe-inline' https://*.commandbar.com https://cdn.jsdelivr.net https://*.command.ai https://unpkg.com; img-src 'self' https://*.command.ai data:; font-src 'self' data:; media-src 'self' https://*.command.ai; connect-src 'self' https://*.command.ai https://*.i.posthog.com https://*.commandbar.com; worker-src blob: 'self';"
social-login:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ bytechef:
cache:
# Cache provider (redis) default: redis
provider: redis
coordinator:
trigger:
scheduler:
# Trigger scheduler provider (aws(ee) | quartz) default: quartz
provider: quartz
data-storage:
# Data storage provider (aws(ee) | filesystem | jdbc) default: jdbc
provider: jdbc
Expand Down Expand Up @@ -175,6 +170,9 @@ bytechef:
public-url: http://127.0.0.1:5173
resources:
web: file:///opt/bytechef/client/
scheduler:
# Trigger scheduler provider (aws(ee) | quartz) default: quartz
provider: quartz
security:
content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://storage.googleapis.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data:; font-src 'self' data:; script-src: https://*.command.ai; frame-src: https://*.command.ai; img-src: https://*.command.ai; media-src: https://*.command.ai; connect-src: https://*.command.ai; style-src: https://*.command.ai;"
# Tenant support mode (single | multi - ee only) default: single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
* @author Nikolina Spehar
*/
@Configuration
@ConditionalOnProperty(
prefix = "bytechef", name = "coordinator.trigger.scheduler.provider", havingValue = "aws")
@ConditionalOnProperty(prefix = "bytechef", name = "coordinator.trigger.scheduler.provider", havingValue = "aws")
@ConditionalOnEEVersion
public class AwsConnectionRefreshSchedulerConfiguration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Marko Kriskovic
*/
@Configuration
@ConditionalOnProperty(prefix = "bytechef", name = "coordinator.trigger.scheduler.provider", havingValue = "aws")
@ConditionalOnProperty(prefix = "bytechef", name = "scheduler.provider", havingValue = "aws")
@ConditionalOnEEVersion
public class AwsTriggerSchedulerConfiguration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
* @author Ivica Cardic
*/
@Configuration
@ConditionalOnProperty(
prefix = "bytechef", name = "coordinator.trigger.scheduler.provider", havingValue = "quartz", matchIfMissing = true)
@ConditionalOnProperty(prefix = "bytechef", name = "scheduler.provider", havingValue = "quartz", matchIfMissing = true)
@ConditionalOnEEVersion
public class MultiTenantQuartzTriggerSchedulerConfiguration implements SchedulerFactoryBeanCustomizer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ public enum Edition {
/** Help hub configuration */
private HelpHub helpHub = new HelpHub();

/** Observability and logging configuration */
private Observability observability = new Observability();

/** Email configuration */
private Mail mail = new Mail();

Expand All @@ -100,6 +97,9 @@ public enum Edition {
/** OAuth2 configuration */
private Oauth2 oauth2 = new Oauth2();

/** Observability and logging configuration */
private Observability observability = new Observability();

/** Public URL for the application */
private String publicUrl;

Expand All @@ -112,6 +112,9 @@ public enum Edition {
/** User sign-up configuration */
private SignUp signUp = new SignUp();

/** Scheduler configuration */
private Scheduler scheduler = new Scheduler();

/** Multi-tenancy configuration */
private Tenant tenant = new Tenant();

Expand Down Expand Up @@ -188,10 +191,6 @@ public HelpHub getHelpHub() {
return helpHub;
}

public Observability getObservability() {
return observability;
}

public Mail getMail() {
return mail;
}
Expand All @@ -204,6 +203,10 @@ public Oauth2 getOauth2() {
return oauth2;
}

public Observability getObservability() {
return observability;
}

public String getPublicUrl() {
return publicUrl;
}
Expand All @@ -216,6 +219,10 @@ public Security getSecurity() {
return security;
}

public Scheduler getScheduler() {
return scheduler;
}

public SignUp getSignUp() {
return signUp;
}
Expand Down Expand Up @@ -304,10 +311,6 @@ public void setHelpHub(HelpHub helpHub) {
this.helpHub = helpHub;
}

public void setObservability(Observability observability) {
this.observability = observability;
}

public void setMail(Mail mail) {
this.mail = mail;
}
Expand All @@ -320,6 +323,10 @@ public void setOauth2(Oauth2 oauth2) {
this.oauth2 = oauth2;
}

public void setObservability(Observability observability) {
this.observability = observability;
}

public void setPublicUrl(String publicUrl) {
this.publicUrl = publicUrl;
}
Expand All @@ -332,6 +339,10 @@ public void setSecurity(Security security) {
this.security = security;
}

public void setScheduler(Scheduler scheduler) {
this.scheduler = scheduler;
}

public void setSignUp(SignUp signUp) {
this.signUp = signUp;
}
Expand Down Expand Up @@ -2199,9 +2210,6 @@ public static class Trigger {
/** Event subscription configuration */
private Subscriptions subscriptions = new Subscriptions();

/** Scheduler configuration */
private Scheduler scheduler = new Scheduler();

public Polling getPolling() {
return polling;
}
Expand All @@ -2210,14 +2218,6 @@ public void setPolling(Polling polling) {
this.polling = polling;
}

public Scheduler getScheduler() {
return scheduler;
}

public void setScheduler(Scheduler scheduler) {
this.scheduler = scheduler;
}

public Subscriptions getSubscriptions() {
return subscriptions;
}
Expand All @@ -2243,33 +2243,6 @@ public void setCheckPeriod(int checkPeriod) {
}
}

/**
* Scheduler configuration for scheduled triggers.
*/
public static class Scheduler {

/**
* Available scheduler providers.
*/
public enum Provider {
/** AWS EventBridge Scheduler */
AWS,
/** Quartz Scheduler */
QUARTZ
}

/** Scheduler provider */
private Provider provider = Provider.QUARTZ;

public Provider getProvider() {
return provider;
}

public void setProvider(Provider provider) {
this.provider = provider;
}
}

/**
* Event subscription configuration for trigger events.
*/
Expand Down Expand Up @@ -3092,6 +3065,33 @@ public void setEnabled(boolean enabled) {
}
}

/**
* Scheduler configuration for scheduled triggers.
*/
public static class Scheduler {

/**
* Available scheduler providers.
*/
public enum Provider {
/** AWS EventBridge Scheduler */
AWS,
/** Quartz Scheduler */
QUARTZ
}

/** Scheduler provider */
private Provider provider = Provider.QUARTZ;

public Provider getProvider() {
return provider;
}

public void setProvider(Provider provider) {
this.provider = provider;
}
}

/**
* User sign-up configuration.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
*/
@Configuration
@EnableConfigurationProperties(QuartzProperties.class)
@ConditionalOnProperty(
prefix = "bytechef", name = "coordinator.trigger.scheduler.provider", havingValue = "quartz",
matchIfMissing = true)
@ConditionalOnProperty(prefix = "bytechef", name = "scheduler.provider", havingValue = "quartz", matchIfMissing = true)
public class QuartzConnectionRefreshSchedulerConfiguration {

private static final Logger logger = LoggerFactory.getLogger(QuartzConnectionRefreshSchedulerConfiguration.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@Configuration
@EnableConfigurationProperties(QuartzProperties.class)
@ConditionalOnProperty(
prefix = "bytechef", name = "coordinator.trigger.scheduler.provider", havingValue = "quartz", matchIfMissing = true)
prefix = "bytechef", name = "scheduler.provider", havingValue = "quartz", matchIfMissing = true)
public class QuartzTriggerSchedulerConfiguration {

private static final Logger logger = LoggerFactory.getLogger(QuartzTriggerSchedulerConfiguration.class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
bytechef:
coordinator:
trigger:
scheduler:
provider: quartz
scheduler:
provider: quartz
tenant:
mode: SINGLE
Loading