fixed deploy issue

This commit is contained in:
Marvin Zhang
2019-03-12 13:01:18 +08:00
parent b7bf01e5f2
commit c532d0614d
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ def execute_spider(self, id: str):
'_id': task_id,
'spider_id': ObjectId(id),
'create_ts': datetime.now(),
'node_id': hostname,
'node_id': 'celery@%s' % hostname,
'hostname': hostname,
'log_file_path': log_file_path,
})

View File

@@ -138,7 +138,7 @@ export default {
cancelButtonText: 'Cancel'
})
.then(() => {
this.$store.dispatch('spider/crawlSpider', row._id.$oid)
this.$store.dispatch('spider/deploySpider', row._id.$oid)
.then(() => {
this.$message.success(`Spider "${row._id.$oid}" has been deployed`)
})