Skip to content

Cloud Code import can cause race condition  #7680

Closed
@Moumouls

Description

@Moumouls

New Issue Checklist

Issue Description

Module import is async, importing as module can currently cause a race issue. A developer do not have any guarantee that the code will be loaded before he try to run some cloud code functions. We have some recurrent CI fails due to #7560.

See #7560 (comment)

Steps to reproduce

Actual Outcome

Random CI fails

Expected Outcome

No flacky

Environment

beta

Server

  • Parse Server version: 5.0.0-beta.1
  • Operating system: all
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): action

Database

  • System (MongoDB or Postgres): all
  • Database version: all
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): all

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): beta
  • SDK version: beta

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions