Git Product home page Git Product logo

lloydmeta / tasques Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 3.0 1 MB

Background Tasks system backed by Elasticsearch with support for language agnostic Workers.

License: Apache License 2.0

Go 65.17% Scala 0.12% Shell 0.65% Java 28.05% Rust 5.44% Makefile 0.30% Dockerfile 0.26%
background-tasks background-jobs language-agnostic job-queue job-scheduler elasticsearch kibana apm docker swagger

tasques's Issues

Improve config

  • Support env variable substitutions for config (this will improve the k8s experience):
  • Improve documentation

Queue name validations

There needs to be a few more validations on queue names, and allowable chars for creates and updates should be different for claiming.

Also, the queue should be persisted with each task.

Improve documentation

  • Improve the README
    • Explain motivation
    • Add comprehensive features list
    • Explain some inner workings
    • Mention how to spin up the K8s stuff in docker/k8s

[Feature] Support skip-if-uncompleted-tasks-exist for Recurring Tasks

It would be nice to support not scheduling a Recurring Task if there are any outstanding Tasks that belong to it (not DEAD or DONE).

This could be added as an optional (default false) field on RecurringTask.

One simple way to do this for Recurring Tasks that have this option set to true would be to do a search for the existence of outstanding tasks any before scheduling the Task in the Scheduler

if log.Debug().Enabled() {
log.Debug().
Str("id", string(task.ID)).
Str("expression", string(task.ScheduleExpression)).
Msg("Enqueuing Task")
}
tx := i.tracer.BackgroundTx("recurring-task-enqueue")
ctx := tx.Context()
_, err := i.tasksService.Create(ctx, i.taskDefToNewTask(task.ID, &task.TaskDefinition))
if err != nil {
log.Error().
Err(err).
Str("id", string(task.ID)).
Str("expression", string(task.ScheduleExpression)).
Msg("Failed to insert new Task at interval")
}
tx.End()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.