Mikael Koli

Results 22 issues of Mikael Koli

This PR has the following changes: - Now session should be passed to task classes. Else, empty session is created. - Deprecated ``session.get_task``

enhancement
core

**Is your feature request related to a problem? Please describe.** Some people might prefer Crontab-like scheduling options over the built-in time periods even though one can compose pretty much the...

enhancement
built-in

Now one can pass arguments when using a custom condition. Now this should work: ```python from pathlib import Path @app.cond() def file_exists(file): return Path(file).exists() @app.task(file_exists("myfile.csv")) def do_things(): ... ```

built-in

**Is your feature request related to a problem? Please describe.** If a task was missed (due to system failure, performance reasons or missing conditions), in some cases it is desired...

enhancement

**Is your feature request related to a problem? Please describe.** Allow creating groups of tasks so they can be modified at once, like: - Setting a prefix to the names...

enhancement
built-in

**Is your feature request related to a problem? Please describe.** The inline images are attached as "noname": ![image](https://user-images.githubusercontent.com/37690409/169714686-5f111559-b6e7-4344-8a02-e5908f164fd4.png) or more specifically, without a name. For library users that use it...

enhancement
MIME

**Is your feature request related to a problem? Please describe.** Currently, a task can run only once at a time. It does not support launching the same task simultaneously. **Describe...

enhancement
core

**Describe the solution you'd like** It would be nice to do this: ```python from rocketry.conds import daily, weekly @app.task(daily.at("12:00", "18:00")) def do_daily_twice(): ... # Condition translates to: daily.at("12:00") | daily.at("18:00")...

enhancement
built-in

This PR makes this possible: ```python from rocketry.conds import daily, weekly @app.task(daily.at("12:00", "18:00")) def do_daily_twice(): ... # Condition translates to: daily.at("12:00") | daily.at("18:00") @app.task(weekly.on("Mon", "Fri")) def do_weekly_twice(): ... # Condition...

built-in