~netlandish/links

70a5244cc8aa259421e31c9f43824c103ab31b96 — Peter Sanchez 10 days ago 7558ddf
No retries on import tasks to avoid import queue being full
1 files changed, 2 insertions(+), 2 deletions(-)

M core/processors.go
M core/processors.go => core/processors.go +2 -2
@@ 65,7 65,7 @@ func ImportBookmarksTask(c echo.Context, origin int, path string,
			server.Logger().Printf("Error sending import complete email: %v", err)
		}
		return nil
	}).Retries(3).Before(func(ctx context.Context, task *work.Task) {
	}).Retries(0).Before(func(ctx context.Context, task *work.Task) {
		gobwebs.TaskIDWork(task)
		gctx.Server.Logger().Printf(
			"Running task ImportBookmarksTask %s for the %d attempt.",


@@ 90,7 90,7 @@ func ParseBaseURLTask(srv *server.Server, baseURL *models.BaseURL) *work.Task {
		ctx = database.Context(ctx, srv.DB)
		ctx = timezone.Context(ctx, "UTC")
		return links.ParseBaseURL(ctx, baseURL)
	}).Retries(3).Before(func(ctx context.Context, task *work.Task) {
	}).Retries(0).Before(func(ctx context.Context, task *work.Task) {
		gobwebs.TaskIDWork(task)
		srv.Logger().Printf(
			"Running task ParseBaseURLTask %s for the %d attempt.",

Do not follow this link