Skip to content

Commit

Permalink
fix: excluding irrelevant cron schedule for scrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Jul 13, 2023
1 parent 0e97cc6 commit ae8d564
Showing 1 changed file with 67 additions and 67 deletions.
134 changes: 67 additions & 67 deletions lib/configs/event/schedule.ts
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
import * as events from 'aws-cdk-lib/aws-events';
import * as events from "aws-cdk-lib/aws-events";

Check failure on line 1 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 1 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

export const syllabusSchedule: { [name: string]: events.Schedule } = {
'regular': events.Schedule.cron({
minute: '0',
hour: '16',
day: '1,12',
month: '*',
year: '*',
regular: events.Schedule.cron({

Check failure on line 4 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Inconsistently quoted property 'regular' found

Check failure on line 4 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Inconsistently quoted property 'regular' found
minute: "0",

Check failure on line 5 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 5 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
hour: "16",

Check failure on line 6 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 6 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
day: "1",

Check failure on line 7 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 7 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
month: "*",

Check failure on line 8 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 8 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
year: "*",

Check failure on line 9 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 9 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
}),
'fall-pre': events.Schedule.cron({
minute: '0',
hour: '16',
day: '19,21,23',
month: 'JUL,AUG',
year: '*',
"fall-pre": events.Schedule.cron({

Check failure on line 11 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 11 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
minute: "0",

Check failure on line 12 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 12 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
hour: "16",

Check failure on line 13 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 13 in lib/configs/event/schedule.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
day: "19,21,23",
month: "JUL,AUG",
year: "*",
}),
'fall-reg1': events.Schedule.cron({
minute: '0',
hour: '16',
day: '4,7,10,13,15,17',
month: 'SEP',
year: '*',
"fall-reg1": events.Schedule.cron({
minute: "0",
hour: "16",
day: "4,7,10,13,15,17",
month: "SEP",
year: "*",
}),
'fall-reg2': events.Schedule.cron({
minute: '0',
hour: '16',
day: '20,23,25',
month: 'SEP',
year: '*',
"fall-reg2": events.Schedule.cron({
minute: "0",
hour: "16",
day: "20,23,25",
month: "SEP",
year: "*",
}),
'fall-reg3': events.Schedule.cron({
minute: '0',
hour: '16',
day: '28,30',
month: 'SEP',
year: '*',
"fall-reg3": events.Schedule.cron({
minute: "0",
hour: "16",
day: "28,30",
month: "SEP",
year: "*",
}),
'fall-reg4': events.Schedule.cron({
minute: '0',
hour: '16',
day: '3,5,8',
month: 'OCT',
year: '*',
"fall-reg4": events.Schedule.cron({
minute: "0",
hour: "16",
day: "3,5,8",
month: "OCT",
year: "*",
}),
'spring-pre': events.Schedule.cron({
minute: '0',
hour: '16',
day: '14,24',
month: 'FEB',
year: '*',
"spring-pre": events.Schedule.cron({
minute: "0",
hour: "16",
day: "14,24",
month: "FEB",
year: "*",
}),
'spring-reg1': events.Schedule.cron({
minute: '0',
hour: '16',
day: '4,7,10,13,16,18,21,24,27',
month: 'MAR',
year: '*',
"spring-reg1": events.Schedule.cron({
minute: "0",
hour: "16",
day: "4,7,10,13,16,18,21,24,27",
month: "MAR",
year: "*",
}),
'spring-reg2': events.Schedule.cron({
minute: '0',
hour: '16',
day: '3,5,8',
month: 'APR',
year: '*',
"spring-reg2": events.Schedule.cron({
minute: "0",
hour: "16",
day: "3,5,8",
month: "APR",
year: "*",
}),
'spring-reg3': events.Schedule.cron({
minute: '0',
hour: '16',
day: '16,20,24,26,28',
month: 'APR',
year: '*',
"spring-reg3": events.Schedule.cron({
minute: "0",
hour: "16",
day: "16,20,24,26,28",
month: "APR",
year: "*",
}),
'spring-reg4': events.Schedule.cron({
minute: '0',
hour: '16',
day: '9,12,14,16',
month: 'MAY',
year: '*',
"spring-reg4": events.Schedule.cron({
minute: "0",
hour: "16",
day: "9,12,14,16",
month: "MAY",
year: "*",
}),
};

0 comments on commit ae8d564

Please sign in to comment.