Skip to content

Supervise#151

Merged
goodboy merged 18 commits into
masterfrom
supervise
Apr 3, 2021
Merged

Supervise#151
goodboy merged 18 commits into
masterfrom
supervise

Conversation

@goodboy

@goodboy goodboy commented Mar 20, 2021

Copy link
Copy Markdown
Contributor

Rebase and fixes to port to new clearing system of #149.

@guilledk I think this is probably the smoothest way forward to avoid waiting on you to rebase 😂

We can both work off this branch now.

@goodboy

goodboy commented Mar 22, 2021

Copy link
Copy Markdown
Contributor Author

@guilledk so I think we can probably just land this since it's small enough and seems to mostly still work 😂

the one last thing I was hoping to get going was running pikerd and being able to persist data feeds / shm arrays so that charts spawn faster when looking up an existing symbol and/or you've got alerts / orders that are still waiting to exec.

what you think?

Comment thread piker/_daemon.py
@@ -0,0 +1,141 @@
"""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh we need license header..

Comment thread piker/_daemon.py
]


async def spawn_brokerd(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's maybe just worth generalizing this spawn logic now?

For example we can have a spawn_daemon(name: str) and then just pass the module list in each case?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that might be worth doing, easier to abstract shared behavoirs

@goodboy goodboy Apr 3, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda started this with the Services type but we probably want to factor out the spawn_<service>d() code somewhat eventually as needed.

@goodboy

goodboy commented Mar 28, 2021

Copy link
Copy Markdown
Contributor Author

Need to cherry-pick in a few commits from cached_feeds branch still.

Will probably delay the spawn api formalizing for another PR just to start keeping things small.

@goodboy
goodboy force-pushed the supervise branch 2 times, most recently from 30152c7 to 69f6538 Compare March 31, 2021 18:56
@goodboy
goodboy changed the base branch from master to lo_dpi March 31, 2021 18:57
@goodboy

goodboy commented Mar 31, 2021

Copy link
Copy Markdown
Contributor Author

@guilledk pretty sure this is ready to land as well 🏄🏼

@goodboy
goodboy requested a review from iamzoltan April 1, 2021 13:34
@goodboy goodboy added the (sub-)systems general sw design and eng label Apr 1, 2021
@goodboy
goodboy changed the base branch from lo_dpi to master April 1, 2021 13:34
Comment thread piker/_daemon.py Outdated
]


# @dataclass

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heh lingering comment.

Guillermo Rodriguez and others added 17 commits April 3, 2021 12:22
Refactor maybe_spawn_brokerd to adapt to new process tree structure
and add a ``maybe_open_pikerd``.
The direct open is needed for running `pikerd` cmd and
the ems spawn point is the first step toward detaching UI based order
entry from the engine itself.
Add a `Services` nurseries container singleton for spawning sub-daemons
inside the long running `pikerd` tree. Bring in `brokerd` spawning util
funcs to start getting eyes on what can be factored into a service api.
@goodboy
goodboy merged commit 890f80e into master Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

(sub-)systems general sw design and eng

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants