Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
3d93b228
Commit
3d93b228
authored
Apr 04, 2015
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Celery debugged for db.
parent
95016278
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
__init__.py
gargantext_web/__init__.py
+1
-1
celery.py
gargantext_web/celery.py
+2
-4
settings.py
gargantext_web/settings.py
+1
-1
parsers_config.py
parsing/parsers_config.py
+2
-1
No files found.
gargantext_web/__init__.py
View file @
3d93b228
from
.celery
import
app
as
async_app
#
from .celery import app as async_app
gargantext_web/celery.py
View file @
3d93b228
...
@@ -25,7 +25,7 @@ app.conf.update(
...
@@ -25,7 +25,7 @@ app.conf.update(
# Using a string here means the worker will not have to
# Using a string here means the worker will not have to
# pickle the object when using Windows.
# pickle the object when using Windows.
app
.
config_from_object
(
'django.conf:settings'
)
#
app.config_from_object('django.conf:settings')
app
.
autodiscover_tasks
(
lambda
:
settings
.
INSTALLED_APPS
)
app
.
autodiscover_tasks
(
lambda
:
settings
.
INSTALLED_APPS
)
from
celery
import
shared_task
from
celery
import
shared_task
...
@@ -35,7 +35,7 @@ from celery import shared_task
...
@@ -35,7 +35,7 @@ from celery import shared_task
def
debug_task
(
request
):
def
debug_task
(
request
):
print
(
'Request: {0!r}'
.
format
(
request
))
print
(
'Request: {0!r}'
.
format
(
request
))
from
gargantext_web.db
import
*
from
gargantext_web.db
import
session
,
Node
@
shared_task
@
shared_task
def
apply_sum
(
x
,
y
):
def
apply_sum
(
x
,
y
):
...
@@ -43,8 +43,6 @@ def apply_sum(x, y):
...
@@ -43,8 +43,6 @@ def apply_sum(x, y):
print
(
session
.
query
(
Node
.
name
)
.
first
())
print
(
session
.
query
(
Node
.
name
)
.
first
())
from
parsing.corpustools
import
add_resource
,
parse_resources
,
extract_ngrams
,
compute_tfidf
from
parsing.corpustools
import
add_resource
,
parse_resources
,
extract_ngrams
,
compute_tfidf
...
...
gargantext_web/settings.py
View file @
3d93b228
...
@@ -17,7 +17,7 @@ PROJECT_PATH = os.path.abspath(PROJECT_PATH)
...
@@ -17,7 +17,7 @@ PROJECT_PATH = os.path.abspath(PROJECT_PATH)
import
djcelery
import
djcelery
djcelery
.
setup_loader
()
djcelery
.
setup_loader
()
BROKER_URL
=
'amqp://guest:guest@localhost:5672/'
BROKER_URL
=
'amqp://guest:guest@localhost:5672/'
CELERY_IMPORTS
=
(
"node.models"
,
"gargantext_web"
)
CELERY_IMPORTS
=
(
"node.models"
,
"gargantext_web
.celery
"
)
# Quick-start development settings - unsuitable for production
# Quick-start development settings - unsuitable for production
...
...
parsing/parsers_config.py
View file @
3d93b228
...
@@ -3,7 +3,8 @@ from .FileParsers import *
...
@@ -3,7 +3,8 @@ from .FileParsers import *
parsers
=
{
parsers
=
{
'Pubmed (xml format)'
:
PubmedFileParser
,
'Pubmed (xml format)'
:
PubmedFileParser
,
'Web of Science (ISI format)'
:
IsiFileParser
,
'Web of Science (ISI format)'
:
IsiFileParser
,
'Scopus ou Zotero (RIS format)'
:
RisFileParser
,
'Scopus (RIS format)'
:
RisFileParser
,
'Zotero (RIS format)'
:
RisFileParser
,
'Jstor (RIS format)'
:
JstorFileParser
,
'Jstor (RIS format)'
:
JstorFileParser
,
#'Europress' : EuropressFileParser,
#'Europress' : EuropressFileParser,
'Europress (French)'
:
EuropressFileParser
,
'Europress (French)'
:
EuropressFileParser
,
...
...
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