[
https://issues.apache.org/jira/browse/GOBBLIN-1880?focusedWorklogId=878221&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-878221
]
ASF GitHub Bot logged work on GOBBLIN-1880:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 24/Aug/23 16:41
Start Date: 24/Aug/23 16:41
Worklog Time Spent: 10m
Work Description: meethngala commented on code in PR #3742:
URL: https://github.com/apache/gobblin/pull/3742#discussion_r1304604872
##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/scheduler/GobblinServiceJobScheduler.java:
##########
@@ -291,6 +291,10 @@ private boolean addSpecHelperMethod(Spec spec) {
*/
@VisibleForTesting
public static boolean isWithinRange(String cronExpression, int
maxNumDaysToScheduleWithin) {
+ if (cronExpression == null || cronExpression.trim().isEmpty()) {
+ // If the cron expression is empty or null, return true to capture adhoc
flows
+ return true;
+ }
Review Comment:
I agree and the callers are not passing `null` . I wanted to cover the case
for adhoc flows where we don't have any schedule... but checking for empty
strings should suffice.
Issue Time Tracking
-------------------
Worklog Id: (was: 878221)
Time Spent: 1h 10m (was: 1h)
> Handle Invalid Cron Schedules for Gobblin Scheduler
> ---------------------------------------------------
>
> Key: GOBBLIN-1880
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1880
> Project: Apache Gobblin
> Issue Type: New Feature
> Reporter: Meeth Gala
> Priority: Major
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)