Skip to content

Resolving QueuedActorClient.call when bundle is being aborted gracefully #2

@oklinov

Description

@oklinov

Let's say my bundle uses abortAllRunsOnGracefulAbort = true and receives aborting signal (it's gracefully aborted) while it's waiting for a contact-info-scraper run to finish:

const cdsRun = await this.client.actor('vdrmota/contact-info-scraper').call(`CDS-0`, { ... });

Currently the call method returns ActorRun with status === 'ABORTED'. IMO the call method should not return anything (it should sleep until the abort) if a bundle was aborted by the library. Otherwise the dev needs to handle two kinds of 'ABORTED': 1) aborted by the library 2) aborted by a user

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions