Creating Cron Job With Kotlin's Ktor

1,135 views
Skip to first unread message

Adam Hurwitz

unread,
Dec 30, 2019, 11:28:47 AM12/30/19
to Google App Engine
Hi AppEngine Community, 👋

Is there a way to run Cron Jobs with Ktor?

I'm currently hosting multiple Java .jar apps written in Kotlin on AppEngine. I'm looking to refactor these apps into Ktor apps on AppEngine with a Cron Job for scheduled tasks, as the .jar apps I've noticed have more issues with dependencies. 

I'm looking for Ktor's equivalent to Cloud Functions' built-in implementation for Cron Jobs with JavaScript. 

functions.pubsub.schedule

Back-up option: If Ktor does not have this feature and I want to keep the code in Kotlin, Google has an alpha, Using Kotlin with Google Cloud Functions. It appears Kotlin + Cloud Functions' built-in implementation could be used with this approach.

Much appreciated!

Elliott (Cloud Platform Support)

unread,
Dec 30, 2019, 12:31:16 PM12/30/19
to Google App Engine

Hello Adam,


As Google Groups is meant to generally discuss Google products, I would suggest continuing your search in a technical forum here as you’ve already done.




Reply all
Reply to author
Forward
0 new messages