Skip to content

Instantly share code, notes, and snippets.

View vmosoti's full-sized avatar
Code

Vincent M vmosoti

Code
View GitHub Profile
@vmosoti
vmosoti / letitfail.go
Created May 4, 2019 05:34 — forked from campoy/letitfail.go
This example shows how to have a set of goroutines running concurrently and processing requests. Panics from goroutines are recovered and the worker is restarted. You can download it and run it directly using `go run letitfail.go`
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
#!/bin/sh
# store start date to a variable
imeron=`date`
echo "Import started: OK"
dumpfile="/path/to/db.sql"
ddl="set names utf8; "
ddl="$ddl set global net_buffer_length=1000000;"