Skip to content

Support for Tasks functionality#112

Open
vitolkachova wants to merge 5 commits into
mainfrom
tasks-commands
Open

Support for Tasks functionality#112
vitolkachova wants to merge 5 commits into
mainfrom
tasks-commands

Conversation

@vitolkachova

@vitolkachova vitolkachova commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  1. List available tasks
upsun task:list
  1. Run a task
upsun task:run myagent --variable env:CALLER=me

Comment thread legacy/src/Command/Task/TaskExecuteCommand.php Outdated
// when several activities are running in parallel.
$activity = reset($activities);
$this->stdErr->writeln(sprintf(
'To follow its log, run: <info>%s activity:log %s</info>',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could directly follow the log here, using the ActivityMonitor service. I think it would be more consistent with other commands.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I deliberately decided not to as task execution can last for many hours, and IMO if a user wants to follow the log it should be an action from their side

Comment thread legacy/src/Command/Task/TaskRunCommand.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants