web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Does the batch job Sleep using sleep() method in x++ ?

(0) ShareShare
ReportReport
Posted on by 384

Dears,

i am using the sleep method in x++ batch job, but i dont think its working 

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi sylvesterD365,

    Please go through the old thread to see if it helps:

    community.dynamics.com/.../922578

  • sylvesterPowerBi Profile Picture
    384 on at

    Dear Judy,

    the idea is to Pause the batch job during execution and not to delay the startup, while executing i need the batch to pause/Sleep for certain time and then continue operating

    [quote user="Judy Jee"]

    Hi sylvesterD365,

    Please go through the old thread to see if it helps:

    community.dynamics.com/.../922578

    [/quote]

    Regards

  • vishy Profile Picture
    85 on at

    Assuming your batch job is running as a true batch job in a different thread, the sleep function would work well.

    Have you tried increasing the sleep delay and see if this slows down the startup even more?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 283 Super User 2025 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 213 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 152 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans