-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Migrate Python code to TypeScript Serverless #35
Conversation
.env.* | ||
|
||
# Local files | ||
data/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour y stocker les fichier de geozones, decree & restrictions pour faciliter le dev
@@ -20,7 +20,7 @@ CREATE TABLE decree( | |||
geozone_id INT REFERENCES geozone (id) NOT NULL, | |||
alert_level VARCHAR(100) NOT NULL, | |||
start_date date NOT NULL, | |||
end_date date NOT NULL, | |||
end_date date, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certains arrêtés n'ont pas de date de fin
src/serverless.yml
Outdated
vpc: | ||
securityGroupIds: | ||
- sg-0be658856297e3899 | ||
subnetIds: | ||
- subnet-0d33d0cd93f1a9377 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est ce qui permet d'acceder à la DB. Ça à été créé via Terraform.
handler: handlers/synchronize-geozones.default | ||
events: | ||
- schedule: cron(0 2 * * ? *) | ||
timeout: 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S'execute en ~20 secondes
handler: handlers/synchronize-decrees.default | ||
events: | ||
- schedule: cron(0 3 * * ? *) | ||
timeout: 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S'execute en ~10 secondes
handler: handlers/synchronize-restrictions.default | ||
events: | ||
- schedule: cron(0 4 * * ? *) | ||
timeout: 600 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S'execute en ~5 minutes
bece1f3
to
73e5fa7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
To do