Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
8ba012ba
authored
Feb 17, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage.local_tasks: added local task for create_from_url
parent
a02e1932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
circle/storage/tasks/local_tasks.py
+8
-0
No files found.
circle/storage/tasks/local_tasks.py
View file @
8ba012ba
...
@@ -14,3 +14,11 @@ def destroy(disk, user):
...
@@ -14,3 +14,11 @@ def destroy(disk, user):
@celery.task
@celery.task
def
restore
(
disk
,
user
):
def
restore
(
disk
,
user
):
disk
.
restore
(
task_uuid
=
restore
.
request
.
id
,
user
=
user
)
disk
.
restore
(
task_uuid
=
restore
.
request
.
id
,
user
=
user
)
@celery.task
def
create_from_url
(
Disk
,
url
,
params
,
user
):
Disk
.
create_from_url
(
url
=
url
,
params
=
params
,
task_uuid
=
create_from_url
.
request
.
id
,
user
=
user
)
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