Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lmc-base-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
lmc-base-classes
Commits
b2971639
Unverified
Commit
b2971639
authored
3 years ago
by
samueltwum1
Browse files
Options
Downloads
Patches
Plain Diff
SAR-277
Address review comments
parent
44d0cfae
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/guide/long_running_command.rst
+5
-5
5 additions, 5 deletions
docs/source/guide/long_running_command.rst
with
5 additions
and
5 deletions
docs/source/guide/long_running_command.rst
+
5
−
5
View file @
b2971639
...
...
@@ -125,7 +125,7 @@ implementations will execute commands in the same manner unless your component m
specifies otherwise. Summarised in a few points, you would do the following to implement
TANGO commands as long running:
1. Create a component manager
of type QueueWorkerComponentManager
with queue size and thread determined.
1. Create a component manager with queue size and thread determined.
2. Create the command class for your tango command.
...
...
@@ -139,7 +139,7 @@ Example Device Implementing Long Running Command
...
def create_component_manager(self):
return
QueueWorker
ComponentManager(
return
Sample
ComponentManager(
op_state_model=self.op_state_model,
logger=self.logger,
max_queue_size=20,
...
...
@@ -147,7 +147,7 @@ Example Device Implementing Long Running Command
push_change_event=self.push_change_event,
)
.. note::
QueueWorker
ComponentManager does not have access to the tango layer.
.. note::
Sample
ComponentManager does not have access to the tango layer.
In order to send LRC attribute updates, provide a copy of the device's `push_change_event`
method to its constructor.
...
...
@@ -175,9 +175,9 @@ then to enqueue your command:
information purpose only.
:rtype: (ResultCode, str)
"""
command
= self.get_command_object("PerformLongTask")
handler
= self.get_command_object("PerformLongTask")
# Enqueue here
unique_id, result_code = self.component_manager.enqueue(
command
)
unique_id, result_code = self.component_manager.enqueue(
handler
)
return [[result_code], [unique_id]]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment