Skip to content

Conversation

@mjnovice
Copy link
Contributor

Summary

  • Add --wait-for-triggers CLI flag to poll triggers until completion instead of suspending
  • Add --trigger-poll-interval CLI flag for configurable poll interval (default: 5.0s)
  • Update pyproject.toml to reference uipath-runtime from PR cli: runtime fix payload deserialize #74 branch

This enables running agents locally with tool calls (InvokeProcess, CreateTask, etc.) without requiring serverless/orchestrator infrastructure.

Usage

# Run with wait-for-triggers enabled (polls every 5 seconds by default)
uipath run my_agent.main '{"query": "hello"}' --wait-for-triggers

# With custom poll interval (10 seconds)
uipath run my_agent.main '{"query": "hello"}' --wait-for-triggers --trigger-poll-interval 10.0

Dependencies

⚠️ Note: The pyproject.toml currently references the git branch from PR #74. Once that PR is merged and released, update the dependency back to a version constraint like uipath-runtime>=0.7.0, <0.8.0.

Test plan

  • Test uipath run with --wait-for-triggers flag locally
  • Verify triggers are polled and execution resumes automatically
  • Test with different trigger types (Job, Task, etc.)

🤖 Generated with Claude Code

…rchestrator

Add CLI flags to enable polling mode for triggers instead of suspending:
- `--wait-for-triggers`: Poll triggers until completion instead of suspending
- `--trigger-poll-interval`: Configurable poll interval (default: 5.0s)

This enables running agents locally with tool calls (InvokeProcess, CreateTask, etc.)
without requiring serverless/orchestrator infrastructure.

Usage:
  uipath run my_agent.main '{"query": "hello"}' --wait-for-triggers
  uipath run my_agent.main '{"query": "hello"}' --wait-for-triggers --trigger-poll-interval 10.0

Depends on: UiPath/uipath-runtime-python#74

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mjnovice mjnovice changed the title feat(cli): add --wait-for-triggers flag for local execution without orchestrator WIP feat(cli): add --wait-for-triggers flag for local execution without orchestrator Jan 28, 2026
@mjnovice mjnovice added the build:dev Create a dev build from the pr label Jan 28, 2026
@mjnovice mjnovice changed the title WIP feat(cli): add --wait-for-triggers flag for local execution without orchestrator feat(cli): add --wait-for-triggers flag for local execution without orchestrator Jan 28, 2026
"uipath-runtime>=0.6.2, <0.7.0",
"uipath-core>=0.2.0, <0.3.0",
# TODO: Change back to "uipath-runtime>=0.7.0, <0.8.0" once PR #74 is merged and released
"uipath-runtime @ git+https://github.com/UiPath/uipath-runtime-python.git@feature/wait-for-triggers",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix / remove

Copy link
Contributor

@Chibionos Chibionos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moving this to WIP as we need to ensure we have the runtime change go in before this

@Chibionos Chibionos changed the title feat(cli): add --wait-for-triggers flag for local execution without orchestrator feat(cli): add --wait-for-triggers flag for local execution without orchestrator (WIP) Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants