func New(rc *redis.Client, isDev bool, ex map[TaskID]TaskExecutor) {
	client = rc
	emailer = &Email{}
	biller = &Billing{}
	if isDev {
		emailer.Send = emailer.sendEmailDev
	} else {
		emailer.Send = emailer.sendEmailProd
	}
	executors = ex
}
New initializes the queue tasks.
package queue
import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"log"
	"net/http"
	"os"
	"strings"
	"time"
	"github.com/go-redis/redis"
	"github.com/robfig/cron"
)
var (
	client    *redis.Client
	pubsub    *redis.PubSub
	scheduler *cron.Cron
	isDev     bool
	emailer *Email
	biller  *Billing
	executors map[TaskID]TaskExecutor
)