https://kotlinlang.org logo
Title
s

shengyou

08/20/2019, 5:12 AM
Hello, I'm new in Ktor. And I'm searching how to integrate migration and cron job feature into Ktor (like such feature in Laravel or Rails). Is there any suggestion package or I'm doing it in a wrong way? Thanks!
v

voben

08/20/2019, 2:31 PM
Cron jobs? Maybe a suspending function with a delay?
s

shengyou

08/20/2019, 3:28 PM
Yes, it's one way to do that. But I need something that could be trigger at specific time. Therefore it it could support the crontab string is much better.
e

Eduard Boloș

08/20/2019, 6:58 PM
by migration do you mean database migration? if yes, I can recommend Flyway
d

Dennis Schröder

08/21/2019, 7:45 AM
s

shengyou

08/21/2019, 9:13 AM
Yes, for database migration. Thanks @Eduard Boloș, I will try flyway.
👍 1
OK, will take a look of the docs. Thanks! @Dennis Schröder
e

Eduard Boloș

08/21/2019, 9:55 AM
Don’t you need some mechanism to persist the scheduled action though? In case that the service is restarted, for instance.
s

shengyou

08/25/2019, 2:27 PM
@Eduard Boloș Yes, therefore I'm trying to integrate with other package like: https://github.com/Ingwersaft/sukejura