Giter Site home page Giter Site logo

jobserver's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

jobserver's Issues

ACLs

Minimal framework for ACLs is available since 4aead7d, but ACLs aren't actually supported. Need some commands like this:

$ job access 13 user:river:vmsd
$ job access global group:users:v---

Mails could be a little clearer

When a job exit action is set to 'disable', the mail just says 'The job has been disabled.' It should probably explain why.

Add a 'max-time' rctl

A new rctl that would limit wall clock time of a job. Stop method should be invoked automatically once the limit is reached.

$ job limit 13 max-time 600

Configurable log rotation behaviour

Currently log rotation is hard-coded to 1MB filesize and 2 keeps. It should be possible to configure this, or to disable log rotation entirely.

Merge 'set' and 'limit'

There's no point having different commands for this. Make 'job set x max-data-size' work and remove 'job limit' and 'job unlimit'.

Add 'maillog' action

This would be like 'mail', but it would include the last few lines of the logfile.

Store job history

There should be a way to view job history, e.g. when it was started, if it failed, changes to it, etc.

Don't let 'job set' set an invalid project

Currently the server doesn't validate project names in CHNG until the job actually executes. To prevent confusing users, it should validate it at CHNG time and return an error.

'disable' doesn't make sense for scheduled jobs

The default action for scheduled jobs is 'disable', but disable is actually ignored for scheduled jobs, so this doesn't do anything. Add a new 'reschedule' action, and make 'disable' work as expected.

Need a way to do a clean shutdown

Currently when the jobserver exits, it doesn't end running jobs, which means they get SIGKILL instead of normal shutdown behaviour. The jobserver should handle SIGTERM and do a clean shutdown.

Should try more than once to start a job

If a job fails to stay up (runs less than SCHED_MIN_RUNTIME) we should try to start it several times before placing it in maintenance, in case it was a transient problem.

Need 'job set fail/crash/exit'

Currently behaviour of fail/crash/exit is not configurable. It should be possible for the user to select 'restart' and/or 'mail' actions for these, e.g.:

job set 4 crash=restart,mail

Support scheduling at absolute time

Need to allow 'at'-style scheduling, e.g. 'job sched 1 at 13:00' or 'job sched 1 at 2009-01-01 23:00', or even 'job sched 1 in 5 minutes'.

Need a way to stop a scheduled job

Currently it is impossible to stop a scheduled job. 'job disable' is disallowed, and 'job unschedule' unscheds the job but doesn't stop it. We probably need a 'job stop' command.

Need better error reporting

Currently we only use errno to report errors, which is often too vague. Add some negative errno values to describe jobserver-specific failures.

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.