Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-analytics-data-api
Commits
54f60b75
Commit
54f60b75
authored
Feb 14, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to wait for task to complete, which we will need for integration tests.
Change-Id: I195446721b99f6612468f94018882f14d173629c
parent
fe709579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
share/task.yml
+16
-1
No files found.
share/task.yml
View file @
54f60b75
...
...
@@ -22,6 +22,7 @@
-
git_server_hostname
:
github.com
-
git_server_ip_address
:
207.97.227.239
-
git_server_public_key
:
'
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='
-
wait_for_task
:
False
tasks
:
-
name
:
known_hosts file exists
...
...
@@ -66,8 +67,22 @@
. {{ working_venv_dir }}/bin/activate && make install
chdir={{ working_repo_dir }}
-
name
:
task run
# Unfortunately, we cannot make the poll value a variable because of this open issue:
# https://github.com/ansible/ansible/issues/255
# As a workaround, we define two versions of this play, then choose
# which one to run based on the boolean `wait_for_task`
# By default, `wait_for_task` is False, so we can "fire and forget" long-running tasks.
# In the integration tests, we will wait for tasks to complete before verifying results.
-
name
:
task run (fire and forget)
shell
:
>
{{ working_venv_dir }}/bin/launch-task {{ task_arguments }} chdir={{ working_repo_dir }}
async
:
10000000000
poll
:
0
when
:
not wait_for_task
-
name
:
task run (wait for completion)
shell
:
>
{{ working_venv_dir }}/bin/launch-task {{ task_arguments }} chdir={{ working_repo_dir }}
async
:
10000000000
poll
:
10
when
:
wait_for_task
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment