Skip to content

Run only once on server #54

Open
Open
@oyeanuj

Description

@oyeanuj

Hey again @ctrlplusb, I was wondering if you think there should be a way for a job to run only once on the server (and not again on the client). Testing with some pages, I realized that for search engines, I was getting the LoadingComponent even when the job was completed on the server. It seems that code does get into withJob and the jobState.completed is not set to true on the client. So, it needs one additional pass to process some custom logic that I provided in the workDefinition to ensure that the jobState is considered complete.

Thoughts on if it would be possible to remember jobState from the server when evaluating the work on client?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions