Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
be0f030f
authored
Apr 01, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage/local_task: added create_empty and clone tasks
parent
a3b06b7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
circle/storage/tasks/local_tasks.py
+10
-3
No files found.
circle/storage/tasks/local_tasks.py
View file @
be0f030f
...
@@ -28,6 +28,12 @@ def save_as(disk, timeout, user):
...
@@ -28,6 +28,12 @@ def save_as(disk, timeout, user):
@celery.task
@celery.task
def
clone
(
disk
,
new_disk
,
timeout
,
user
):
disk
.
clone
(
task_uuid
=
save_as
.
request
.
id
,
user
=
user
,
disk
=
new_disk
,
timeout
=
timeout
)
@celery.task
def
deploy
(
disk
,
user
):
def
deploy
(
disk
,
user
):
disk
.
deploy
(
task_uuid
=
deploy
.
request
.
id
,
user
=
user
)
disk
.
deploy
(
task_uuid
=
deploy
.
request
.
id
,
user
=
user
)
...
@@ -57,6 +63,7 @@ create_from_url = CreateFromURLTask()
...
@@ -57,6 +63,7 @@ create_from_url = CreateFromURLTask()
@celery.task
@celery.task
def
create_empty
(
Disk
,
instance
,
params
,
user
):
def
create_empty
(
Disk
,
instance
,
user
,
params
):
Disk
.
create_empty
(
instance
,
params
,
user
,
Disk
.
create_empty
(
instance
,
user
,
task_uuid
=
create_empty
.
request
.
id
)
task_uuid
=
create_empty
.
request
.
id
,
**
params
)
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