question

Koen avatar image
Koen asked

Is it possible to start a scheduled task from another scheduled task?

This is probably a very specific use case, but I'll give it a try. We want to run a scheduled task on a segment of players to run a CloudScript action. But we only want to run the scheduled task if certain conditions are met. But we want to check these conditions (on title data level) first, before starting the task (since the task could possibly take a long time to run).

It's not possible for us to start the task manually so we'd like a task that runs every hour to check these conditions (simple check). If they are true, start the long task for all the players. Is something like this possible (I hope the case is clear enough)?

This way we won't have the start the long task every hour, hoping the conditions are met already, cause this could result in a long delay before a task is run when the conditions are indeed met, since the next task would fail because the previous one is still running.

We're on the free plan currently, and until the playerbase is sufficient enough (which will probably take a while after launch), we can upgrade to the pro plan, so we only have 1 concurrent scheduled task at the moment.

CloudScriptscheduled tasks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

You can't run a Scheduled Task from another Scheduled Task, but can you describe in more detail what the scenario is? How is Title Data being changed, specifically?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.