Hello, I'm new in Ktor. And I'm searching how to i...
# ktor
s
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
Cron jobs? Maybe a suspending function with a delay?
s
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
by migration do you mean database migration? if yes, I can recommend Flyway
d
s
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
Don’t you need some mechanism to persist the scheduled action though? In case that the service is restarted, for instance.
s
@Eduard Boloș Yes, therefore I'm trying to integrate with other package like: https://github.com/Ingwersaft/sukejura