Scheduling a Future Agent Invocation (Scala)
SkillProductivityLets your agent schedule tasks to run automatically at a later time in a Scala Golem project.
Use Scheduling a Future Agent Invocation (Scala) in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Scheduling a Future Agent Invocation (Scala) and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Scheduling a Future Agent Invocation (Scala) skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Scheduling a future agent invocation in a Scala Golem project. Use when the user asks about delayed invocations, scheduling calls for later, or timed agent execution.
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/scala/golem-schedule-future-call-scala/SKILL.md and read by ahel’s review.
Overview
A scheduled invocation enqueues a method call on the target agent to be executed at a specific future time. The call returns immediately; the target agent processes it when the scheduled time arrives.
Usage
Each method on the remote proxy has a .scheduleAt(when) method that enqueues the call for the given time:
import golem.Datetime
val counter = CounterAgentClient.get("my-counter")
// Schedule increment to run 5 seconds from now
counter.increment.scheduleAt(Datetime.afterSeconds(5))
// Schedule with arguments — method params first, then when
val reporter = ReportAgentClient.get("daily")
reporter.generateReport.scheduleAt(
"summary",
when = Datetime.afterSeconds(3600) // 1 hour from now
)
Datetime Helper
The golem.Datetime type provides helper methods:
import golem.Datetime
Datetime.afterSeconds(60) // 60 seconds from now
Datetime.afterSeconds(3600) // 1 hour from now
Cancelable Variant
Every method also has a scheduleCancelableAt variant that returns a Future[CancellationToken]. Call .cancel() on the token to prevent the scheduled invocation from firing:
import golem.runtime.rpc.CancellationToken
val token: CancellationToken = Await.result(
counter.increment.scheduleCancelableAt(Datetime.afterSeconds(60)),
Duration.Inf
)
// Later, to cancel the pending invocation:
token.cancel()
Use Cases
- Periodic tasks: Schedule the next run at the end of each invocation
- Delayed processing: Process an order after a cooling-off period
- Reminders and notifications: Send a reminder at a specific time
- Retry with backoff: Schedule a retry after a delay on failure
Signals
- GitHub stars
- 2k
- Forks
- 210
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
golem-schedule-future-call-scala- Source
- github.com/golemcloud/golem
More in Productivity
Skill · coreyhaines31
More in Productivitygws-calendar
Skill · googleworkspace
More in Productivitylark-workflow-standup-report
Skill · larksuite
More in Productivitywriting-plans
Skill · obra
More in Productivityenergy-procurement
Skill · affaan-m
More in Productivityhomelab-pihole-dns
Skill · affaan-m
More in Productivity