Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Hello Is There Any Actual Way To Modify


Is there any actual way to modify TaskScheduler in runtime as mentioned here?


Checked API, Github, did quite some trial and error and can't wrap my head around it.

My usecase: i want to add and remove tasks from a running scheduler. a perfectly sensible thing to do i imagine.

Posted 9 months ago
Votes Newest

Answers 3

Hi GloriousPenguin2 , how did you try to modify it? From the code it looks like it's expecting a configuration and it will sample it once every few minutes

Posted 9 months ago

Yes i see it, but where's the endpoint to modify a config? TaskScheduler doesn't have any getters or setters for that

Getting id of the TaskScheduler doesn't lead to anything, since you dont have a getter like TaskScheduler.get_task(), you only have Task.get_task(), but there's no way to do .add_step() or .remove_step() because Task doesn't have such methods

User config is no-op, the schedule appears to be contained in some json configuration object created under the hood. Maybe this could work: creating Task, instantiating some config via Task.connect(), instantiating TaskScheduler, tying behavior like create_step to that config and modifying said config in runtime by accessing it through Task.get_task. But i'd like to hear what the authors say.

Posted 9 months ago


Posted 9 months ago
3 Answers
9 months ago
8 months ago