mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -124,3 +124,5 @@ _book/
|
||||
|
||||
backend/spiders
|
||||
spiders/*.zip
|
||||
|
||||
vendor/
|
||||
|
||||
@@ -145,7 +145,7 @@ func InitLogIndexes() error {
|
||||
_ = c.EnsureIndex(mgo.Index{
|
||||
Key: []string{"expire_ts"},
|
||||
Sparse: true,
|
||||
ExpireAfter: 0 * time.Second,
|
||||
ExpireAfter: 1 * time.Second,
|
||||
})
|
||||
_ = ce.EnsureIndex(mgo.Index{
|
||||
Key: []string{"task_id"},
|
||||
@@ -156,7 +156,7 @@ func InitLogIndexes() error {
|
||||
_ = ce.EnsureIndex(mgo.Index{
|
||||
Key: []string{"expire_ts"},
|
||||
Sparse: true,
|
||||
ExpireAfter: 0 * time.Second,
|
||||
ExpireAfter: 1 * time.Second,
|
||||
})
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user