Skip to content

Alternative time/memory units in config #26

@tonowak

Description

@tonowak

Currently it's possible to specify the time limit and memory limit in ms and kb, but one could make a mistake in the three zeros. It's also a bit not readable -- it takes a bit of time to understand that 16000ms is 16s and not e.g. 1.6s.

What I propose:

  • leave the possibility of specifying in ms and kB,
  • add a new way to specify time and memory: memory_limit_mb and time_limit_s, which takes consecutively an integer and a float,
  • implement the same in sio2,
  • assert that when someone specifies e.g. both memory_limit and memory_limit_mb, then their values are equal (e.g. 1000 and 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions