Is there a local runtime a-la miniflare?
Or do I have to deploy and then run my unit tests against your APIs?
900 karma · joined June 6, 2011
Is there a local runtime a-la miniflare?
Or do I have to deploy and then run my unit tests against your APIs?
You shouldn't need to first do a check to see if the task already exists using a different api, and then choose whether or not to run a new task.
At least this is my preference.. a-la Durable Objects.
If you don't specify a custom unique id when calling the task it would then be treated as a task that can (and would make sense to be) run multiple times (i.e. not idempotent).
Does this look nice in the observability layer?
I'm guessing this is a "just make sure everything you do is idempotent" approach? Is there any kind of state between attempts?
Also how would you have a task with a unique id / parameter so that when you call it it will only be scheduled once and returns the result of the existing scheduled job?
Another question, how would you have custom retry logic in your job without blocking your concurrency? Or if using the platforms retry mechanism, how can you run some logic when the job fails? Can the job know what attempt it is on? Is there context of any sort? The only solution I can see from the docs would be to execute jobs recursively but that seems like it would be ugly and mess up the observability? I'm looking for a feature like Temporal's sleeping that actually does a delayed reexecution of the job (I think).
Also I can't get the discord link to work, it seems to link to a discussion rather than being an invite link (I'll give it another try on desktop)
Also here's a presentation on finding vulnerabilities in Ironkey flashdrive: https://www.youtube.com/watch?v=R8iAqA0pklw
That ones's obviously a little less purist though..
ChatGPT: "The First Sally (A), or Trurl's Electronic Bard" is a short story by Stanislaw Lem that tells the story of two constructors, Trurl and Klapaucius, who are famous for building automated machines to do tasks for their clients. In this story, Trurl creates an electronic bard, a machine that can compose poetry. The machine is so successful that it becomes popular throughout the land and Trurl is asked to perform before the king. However, the king is unimpressed by the poetry and orders Trurl to come up with something more magnificent. Trurl attempts to create a machine that can create the ultimate poem, but the machine becomes too powerful and begins to create poems that are too beautiful and perfect, causing people to become depressed and hopeless. Trurl is forced to dismantle the machine and destroy its creations. The story is a commentary on the dangers of technology and the limitations of art and creativity.
Also here's a kagi summary: https://labs.kagi.com/ai/sum?url=https://electricliterature....
https://gwern.net/doc/ai/poetry/1974-lem-cyberiad-trurlselec...
I get where you're coming from about having problems with the tone of the website, and that it doesn't say "this is a nasty way to die, it's going to feel awful". But on the other hand it's trying to push for self autonomy in an area where it's criminalised.
Really laws need to change to give people options.
cloudflare alarms seem like a decent solution for scheduling. If you want a state machine, you can just use a state machine (xstate).
The durable object primitives are more limited, but therefor seem a little easier to get your head around if you don't need all sorts of complex signalling.
introspection / analytics is obviously a pain to have to deal with yourself. I guess you'd end up saving the state to a database after any action. And you could probably get a reasonable little analytics dashboard fairly painlessly by chucking something like appsmith in front of it?
The way its output is received is all that matters.
Is this being sold as a tool that I could use for.. say.. persistent workflows for customer payments? Say I needed to take payment, and make sure that a ticket is reserved using a 3rd party api once the payment is successfully processed, refund the payment if there's some kind of problem, and then I need to send a confirmation email.
Can I store and query state on the workflow? In my code can I `await` the completion of a workflow and get a result?
A one-off purchase is very different from making a hole in the bucket.
Obviously this all depends on how financially comfortable you are. But still.. time is money. Money you're spending today is time you're committing to work to earn back tomorrow.
I can't help but think that you want a state machine here, rather than imperative code that's being analysed to try and get some kind of a graph out of it..
I'm personally looking forward to a cloud, state machine based service that offers the whole long running workflow thing. The closest I've seen so far was people using xstate within temporal.io workflows.. but would be amazing to have really nice observability out of the box, with all the clarity that state machines bring.