mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fixed deploy issue
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user