Replies: 4 comments 1 reply
-
Please open a discussion next time you want to ask something. Issues are for bug reports and feature requests. |
Beta Was this translation helpful? Give feedback.
-
Why do you need to force the same data format on the stores? Why not just pass x, y and z as arguments to the scheduled job? For
Yes, you can add a job any time the scheduler is running. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I have implemented both dynamic adding/removing of tasks and mqtt integration. Also, how can I delete all jobs in the scheduler?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the swift response. Apscheduler is awesome. |
Beta Was this translation helpful? Give feedback.
-
Hello @agronholm,
Before using apscheduler, I had a MQTT client that subscribes to a topic and writes(adds/removes) the message to the SQLite database. The message payload contains the time and parameters(x, y, z) needed to act at a given time.
Now I want to use apscheduler to schedule tasks at an expected time and use the parameters(x,y,z) to call a function
def move(x,y,z)
and perform an action. Finally, I want the mqtt client to dynamically add/remove the schedules.First, question, how can I make the job stores have the same data format(task_id, time, x, y, z)?
Secondly question, most examples I have seen add a job as the script begins. Can I add a job dynamically from any messaging service like MQTT, firebase etc rather than add it at the beginning of the script?
Thanks for apscheduler and I hope to hear from you soon.
Beta Was this translation helpful? Give feedback.
All reactions