Skip to content

Commit

Permalink
fixed add schedules error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marvzhang committed May 23, 2019
1 parent 1ec23af commit a0acd6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions crawlab/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ node_modules/

# egg-info
*.egg-info

tmp/
2 changes: 1 addition & 1 deletion crawlab/bin/run_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import tasks.deploy

if __name__ == '__main__':
if sys.platform == 'windows':
if 'win' in sys.platform:
celery_app.start(argv=['tasks', 'worker', '-P', 'eventlet', '-E', '-l', 'INFO'])
else:
celery_app.start(argv=['tasks', 'worker', '-E', '-l', 'INFO'])
4 changes: 2 additions & 2 deletions crawlab/routes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def put(self) -> (dict, tuple):

self.after_update()

return item
return jsonify(item)

def update(self, id: str = None) -> (dict, tuple):
"""
Expand All @@ -137,7 +137,7 @@ def update(self, id: str = None) -> (dict, tuple):
# execute after_update hook
self.after_update(id)

return item
return jsonify(item)

def post(self, id: str = None, action: str = None):
"""
Expand Down

0 comments on commit a0acd6d

Please sign in to comment.