question

Muhammad Roshaan Tariq avatar image
Muhammad Roshaan Tariq asked

Cloudscript function not showing in Scheduled tasks

Hi, I have a method in my cloudscript but it's not showing in Scheduled Tasks when I choose to run Cloudscript from Actions but other functions of my Cloudscript are showing up there.

Why is that? Does it take some time for the functions to show in Scheduled Tasks? Or is there some limit for the functions?

CloudScriptscheduled taskstasks
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

·
Citrus Yan avatar image
Citrus Yan answered

Please make sure that you deployed the latest revision with add your CloudScript functions to the handlers object so that it’s made available to your title, like this:

handlers.helloWorld = function (args,context) 

{ 
 	return “Hello!”
}
2 comments
10 |1200

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

Muhammad Roshaan Tariq avatar image Muhammad Roshaan Tariq commented ·

@Citrus Yan Can't I use simple JS functions?

function something(myargument1)
{
//do something
}
0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Muhammad Roshaan Tariq commented ·

No, the function must be added in the handlers object.

0 Likes 0 ·

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]