mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: support notification for node
This commit is contained in:
@@ -110,6 +110,10 @@ func (svr TaskServerV2) Fetch(ctx context.Context, request *grpc.Request) (respo
|
||||
}
|
||||
|
||||
func (svr TaskServerV2) SendNotification(_ context.Context, request *grpc.TaskServiceSendNotificationRequest) (response *grpc.Response, err error) {
|
||||
if !utils.IsPro() {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// task id
|
||||
taskId, err := primitive.ObjectIDFromHex(request.TaskId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user