Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factors redis trigger #2750

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Factors redis trigger #2750

merged 2 commits into from
Aug 23, 2024

Conversation

lann
Copy link
Collaborator

@lann lann commented Aug 22, 2024

No description provided.

Copy link
Collaborator

@rylev rylev left a comment

Choose a reason for hiding this comment

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

Looks great! I hope the rebase is easy.

use tracing::{instrument, Level};

use crate::spin::SpinRedisExecutor;
pub struct RedisTrigger;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: can we do the _priv: () trick here?

})
type CliArgs = NoCliArgs;

type InstanceState = ();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Random thought: I like how type CliArgs = NoCliArgs; reads much better than type InstanceState = ();. Perhaps we should consider a NoInstanceState type which could be used for empty instance state instead of ().

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fwiw NoCliArgs is only necessary because of the type CliArgs: clap::Args bound.

let mut pubsub = client
.get_async_connection()
) -> anyhow::Result<Self> {
let client = Client::open(address)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason to open the client connection here instead of in run_listener?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

open is a lie - its just parsing the address

@rylev
Copy link
Collaborator

rylev commented Aug 23, 2024

@lann I rebased this and am going to merge since we have some other changes that move lots of files around, and it'll be easier on everyone if we just get this one in.

@rylev rylev merged commit f246b57 into fermyon:factors Aug 23, 2024
2 checks passed
@lann lann deleted the factors-redis-trigger branch August 23, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants