Support for Tasks functionality#112
Open
vitolkachova wants to merge 3 commits into
Open
Conversation
vitolkachova
commented
Jun 19, 2026
Contributor
- List available tasks
- Run a task
106af47 to
f9d1f47
Compare
pjcdawkins
reviewed
Jun 19, 2026
| use Symfony\Component\Console\Input\InputOption; | ||
| use Symfony\Component\Console\Output\OutputInterface; | ||
|
|
||
| #[AsCommand(name: 'task:execute', description: 'Execute a task on an environment')] |
Contributor
There was a problem hiding this comment.
TBD - in Slack - we are discussing run instead of execute
pjcdawkins
reviewed
Jun 19, 2026
| // 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>', |
Contributor
There was a problem hiding this comment.
We could directly follow the log here, using the ActivityMonitor service. I think it would be more consistent with other commands.
pjcdawkins
reviewed
Jun 19, 2026
| )); | ||
|
|
||
| $url = $environment->getUri() . '/tasks/' . rawurlencode($taskName) . '/run'; | ||
| $response = $this->api->getHttpClient()->request('POST', $url, ['json' => ['variables' => (object) $variables]]); |
Contributor
There was a problem hiding this comment.
This would benefit from the ApiResponseException wrapping (already used in TaskListCommand).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.