Mikael Koli
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``
**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...
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(): ... ```
**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...
**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...
**Is your feature request related to a problem? Please describe.** The inline images are attached as "noname":  or more specifically, without a name. For library users that use it...
**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...
**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")...
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...