You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since job configuration requires a restart to be loaded, cannot (currently) be updated, and is very small (would likely scale to 100's of jobs at least), I'd like to propose caching the jobs config on start. In addition to removing a database query when getting job info, this would make supplying job config information to the downstream worker a breeze (#5).
I was initially thinking this could be done here, but am open to other suggestions.
Thoughts overall? Happy to take this on if we can agree this is a good idea.
The text was updated successfully, but these errors were encountered:
This seems reasonable; I wish I could add updating but it'd be easy enough to switch later as well.
I was initially thinking this could be done here, but am open to other suggestions.
It's probably a bad idea to make network calls in the init() package, which is usually used to initialize in-memory things your library needs like flags or variables. It would also mean that we'd have to ensure the database is configured and connections are established before that init() runs and in general you can't guarantee ordering of init() function calls - you can define as many of them as you want.
Since job configuration requires a restart to be loaded, cannot (currently) be updated, and is very small (would likely scale to 100's of jobs at least), I'd like to propose caching the jobs config on start. In addition to removing a database query when getting job info, this would make supplying job config information to the downstream worker a breeze (#5).
I was initially thinking this could be done here, but am open to other suggestions.
Thoughts overall? Happy to take this on if we can agree this is a good idea.
The text was updated successfully, but these errors were encountered: